SACT: Add WaitVsync() in animation loops

So that sprite updates are reflected on the screen.
This commit is contained in:
kichikuou
2020-05-31 09:58:18 +09:00
parent 3e2c226866
commit 0fe5cb60a3
+2
View File
@@ -164,6 +164,7 @@ void spev_move_waitend(sprite_t *sp, int dx, int dy, int time) {
while (sp->move.moving) {
nact->callback();
WaitVsync();
}
}
@@ -182,6 +183,7 @@ void spev_wait4moving_sp() {
while (sp->move.moving) {
nact->callback();
WaitVsync();
}
}
}