From b23d05f8501538f95671b86e25f37c4922bbab0f Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 10 Oct 2022 11:42:10 +0300 Subject: [PATCH] Fix called shot window freeze See #165 --- src/combat.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/combat.cc b/src/combat.cc index 2684215..071ac85 100644 --- a/src/combat.cc +++ b/src/combat.cc @@ -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();