racing:: just reset the race on restart
This commit is contained in:
parent
b888205a17
commit
83eb725448
|
@ -1620,6 +1620,11 @@ EX void start_game() {
|
||||||
// popAllScreens + popAllGames + stop_game + switch_game_mode + start_game
|
// popAllScreens + popAllGames + stop_game + switch_game_mode + start_game
|
||||||
EX void restart_game(char switchWhat IS(rg::nothing)) {
|
EX void restart_game(char switchWhat IS(rg::nothing)) {
|
||||||
popScreenAll();
|
popScreenAll();
|
||||||
|
if(switchWhat == rg::nothing && racing::on) {
|
||||||
|
racing::restore_goals();
|
||||||
|
racing::reset_race();
|
||||||
|
return;
|
||||||
|
}
|
||||||
stop_game();
|
stop_game();
|
||||||
switch_game_mode(switchWhat);
|
switch_game_mode(switchWhat);
|
||||||
start_game();
|
start_game();
|
||||||
|
|
Loading…
Reference in New Issue