From 83eb7254487b8265e073329c131027bfdcc7f507 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 16 Jun 2022 23:11:34 +0200 Subject: [PATCH] racing:: just reset the race on restart --- system.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system.cpp b/system.cpp index 42e0132d..afbc6f70 100644 --- a/system.cpp +++ b/system.cpp @@ -1620,6 +1620,11 @@ EX void start_game() { // popAllScreens + popAllGames + stop_game + switch_game_mode + start_game EX void restart_game(char switchWhat IS(rg::nothing)) { popScreenAll(); + if(switchWhat == rg::nothing && racing::on) { + racing::restore_goals(); + racing::reset_race(); + return; + } stop_game(); switch_game_mode(switchWhat); start_game();