Skip to content

Commit

Permalink
Fix called shot window freeze
Browse files Browse the repository at this point in the history
See #165
  • Loading branch information
alexbatalov committed Oct 10, 2022
1 parent e16659d commit b23d05f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/combat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5580,6 +5580,8 @@ static int calledShotSelectHitLocation(Object* critter, int* hitLocation, int hi

int eventCode;
while (true) {
sharedFpsLimiter.mark();

eventCode = inputGetInput();

if (eventCode == KEY_ESCAPE) {
Expand All @@ -5593,6 +5595,9 @@ static int calledShotSelectHitLocation(Object* critter, int* hitLocation, int hi
if (_game_user_wants_to_quit != 0) {
break;
}

renderPresent();
sharedFpsLimiter.throttle();
}

_gmouse_enable();
Expand Down

0 comments on commit b23d05f

Please sign in to comment.