Fix talking head mood transition
This commit is contained in:
parent
c9864741f3
commit
28083cfea9
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue