From 28083cfea9b2ff57a04a2be950bf1c6e54057eff Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 9 Feb 2023 19:40:25 +0300 Subject: [PATCH] Fix talking head mood transition --- src/game_dialog.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game_dialog.cc b/src/game_dialog.cc index c0924e9..48a6518 100644 --- a/src/game_dialog.cc +++ b/src/game_dialog.cc @@ -2612,11 +2612,16 @@ void _gdPlayTransition(int anim) int frame = 0; unsigned int time = 0; while (frame < artGetFrameCount(headFrm)) { + sharedFpsLimiter.mark(); + if (getTicksSince(time) >= delay) { gameDialogRenderTalkingHead(headFrm, frame); time = getTicks(); frame++; } + + renderPresent(); + sharedFpsLimiter.throttle(); } if (artUnlock(headFrmHandle) == -1) {