Skip to content

Commit

Permalink
more uquit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei8l committed Aug 27, 2024
1 parent 7ed507c commit 0a82f2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/handle_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>( "ANIMATION_RAIN" ) ) {
/*
Location to add rain drop animation bits! Since it refreshes w_terrain it can be added to the animation section easily
Expand Down Expand Up @@ -3026,6 +3029,10 @@ bool game::handle_action()
// of location clicked.
std::optional<tripoint> mouse_target;

if( uquit == QUIT_EXIT ) {
return false;
}

if( uquit == QUIT_WATCH && action == "QUIT" ) {
uquit = QUIT_DIED;
return false;
Expand Down

0 comments on commit 0a82f2d

Please sign in to comment.