mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-02 08:47:03 +00:00
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
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user