Fix talking head mood transition

This commit is contained in:
Alexander Batalov 2023-02-09 19:40:25 +03:00
parent c9864741f3
commit 28083cfea9
1 changed files with 5 additions and 0 deletions

View File

@ -2612,11 +2612,16 @@ void _gdPlayTransition(int anim)
int frame = 0; int frame = 0;
unsigned int time = 0; unsigned int time = 0;
while (frame < artGetFrameCount(headFrm)) { while (frame < artGetFrameCount(headFrm)) {
sharedFpsLimiter.mark();
if (getTicksSince(time) >= delay) { if (getTicksSince(time) >= delay) {
gameDialogRenderTalkingHead(headFrm, frame); gameDialogRenderTalkingHead(headFrm, frame);
time = getTicks(); time = getTicks();
frame++; frame++;
} }
renderPresent();
sharedFpsLimiter.throttle();
} }
if (artUnlock(headFrmHandle) == -1) { if (artUnlock(headFrmHandle) == -1) {