mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-25 20:12:50 +00:00
rogueviz::ads:: correctly restart the ads game
This commit is contained in:
parent
aa6727c564
commit
c42d457c56
@ -2,6 +2,11 @@ namespace hr {
|
||||
|
||||
namespace ads_game {
|
||||
|
||||
void restart() {
|
||||
if(main_rock) ds_restart();
|
||||
else ads_restart();
|
||||
}
|
||||
|
||||
void adjust_for_scale() {
|
||||
ld ads_scale = get_scale();
|
||||
if(ads_scale < 0.3) max_gen_per_frame = 1, draw_per_frame = 30;
|
||||
@ -211,8 +216,7 @@ void game_menu() {
|
||||
dialog::add_action([] {
|
||||
game_over_with_message("restarted");
|
||||
save_to_hiscores();
|
||||
if(main_rock) ds_restart();
|
||||
else restart();
|
||||
restart();
|
||||
popScreen(); });
|
||||
|
||||
dialog::addItem(XLAT("highscores"), 'h');
|
||||
|
Loading…
x
Reference in New Issue
Block a user