Fix called shot window freeze

See #165
This commit is contained in:
Alexander Batalov 2022-10-10 11:42:10 +03:00
parent e16659d96d
commit b23d05f850
1 changed files with 5 additions and 0 deletions

View File

@ -5580,6 +5580,8 @@ static int calledShotSelectHitLocation(Object* critter, int* hitLocation, int hi
int eventCode; int eventCode;
while (true) { while (true) {
sharedFpsLimiter.mark();
eventCode = inputGetInput(); eventCode = inputGetInput();
if (eventCode == KEY_ESCAPE) { if (eventCode == KEY_ESCAPE) {
@ -5593,6 +5595,9 @@ static int calledShotSelectHitLocation(Object* critter, int* hitLocation, int hi
if (_game_user_wants_to_quit != 0) { if (_game_user_wants_to_quit != 0) {
break; break;
} }
renderPresent();
sharedFpsLimiter.throttle();
} }
_gmouse_enable(); _gmouse_enable();