Skip to content

Commit

Permalink
Merge pull request #37716 from wapcaplet/wapcaplet-escape-cancel-sleep
Browse files Browse the repository at this point in the history
Make ESC key stop trying to sleep
  • Loading branch information
ZhilkinSerg authored Feb 5, 2020
2 parents d8db28f + c20c671 commit 8ba6a61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/activity_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3126,6 +3126,7 @@ void activity_handlers::try_sleep_query( player_activity *act, player *p )
_( "Continue trying to fall asleep and don't ask again." ) );
sleep_query.query();
switch( sleep_query.ret ) {
case UILIST_CANCEL:
case 1:
act->set_to_null();
break;
Expand Down

0 comments on commit 8ba6a61

Please sign in to comment.