From 679915a741a5a4fecac530c5ffb8003f02872e4c Mon Sep 17 00:00:00 2001 From: advil Date: Thu, 19 Jul 2018 10:01:53 -0400 Subject: [PATCH] Handle an obscure webtiles exit case better Prevents webtiles from showing an error dialog when exiting from the main menu via ESC. --- crawl-ref/source/startup.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crawl-ref/source/startup.cc b/crawl-ref/source/startup.cc index f1ff8946bf4..39f3c287bf6 100644 --- a/crawl-ref/source/startup.cc +++ b/crawl-ref/source/startup.cc @@ -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