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

View File

@ -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) {
@ -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();