From 0a82f2db2b95e0297f02d77bd1543f572085a2c1 Mon Sep 17 00:00:00 2001 From: andrei Date: Wed, 28 Aug 2024 00:14:29 +0300 Subject: [PATCH] more uquit --- src/handle_action.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/handle_action.cpp b/src/handle_action.cpp index cbbc426949f3c..e3696a33ea5e4 100644 --- a/src/handle_action.cpp +++ b/src/handle_action.cpp @@ -333,6 +333,9 @@ input_context game::get_player_input( std::string &action ) creature_tracker &creatures = get_creature_tracker(); do { + if( g->uquit == QUIT_EXIT ) { + break; + } if( bWeatherEffect && get_option( "ANIMATION_RAIN" ) ) { /* Location to add rain drop animation bits! Since it refreshes w_terrain it can be added to the animation section easily @@ -3026,6 +3029,10 @@ bool game::handle_action() // of location clicked. std::optional mouse_target; + if( uquit == QUIT_EXIT ) { + return false; + } + if( uquit == QUIT_WATCH && action == "QUIT" ) { uquit = QUIT_DIED; return false;