anims:: record_animation now does shmup::turn, e.g. to work with RogueViz state changes

This commit is contained in:
Zeno Rogue 2018-11-18 17:32:13 +01:00
parent de2ae6901a
commit 73de211bf2
1 changed files with 3 additions and 1 deletions

View File

@ -530,8 +530,10 @@ string animfile = "animation-%04d.png";
bool record_animation() {
lastticks = 0;
ticks = 0;
for(int i=0; i<noframes; i++) {
ticks = i * period / noframes;
int newticks = i * period / noframes;
while(ticks < newticks) shmup::turn(1), ticks++;
apply();
conformal::configure();
if(conformal::on) {