1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

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

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) {