Skip to content

Commit

Permalink
Handle an obscure webtiles exit case better
Browse files Browse the repository at this point in the history
Prevents webtiles from showing an error dialog when exiting from the
main menu via ESC.
  • Loading branch information
rawlins committed Jul 19, 2018
1 parent 4eb3915 commit 679915a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crawl-ref/source/startup.cc
Expand Up @@ -1038,7 +1038,12 @@ static void _show_startup_menu(newgame_def& ng_choice,
ui::run_layout(move(popup), startup_ui->done);

if (startup_ui->end_game)
{
#ifdef USE_TILE_WEB
tiles.send_exit_reason("cancel");
#endif
end(0);
}
}
#endif

Expand Down

0 comments on commit 679915a

Please sign in to comment.