mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
anims:: calling conformal::apply() correctly
This commit is contained in:
parent
6f0cdea2fc
commit
2ffcd47150
@ -561,6 +561,8 @@ string animfile = "animation-%04d.png";
|
|||||||
bool record_animation() {
|
bool record_animation() {
|
||||||
for(int i=0; i<noframes; i++) {
|
for(int i=0; i<noframes; i++) {
|
||||||
ticks = i * period / noframes;
|
ticks = i * period / noframes;
|
||||||
|
apply();
|
||||||
|
conformal::configure();
|
||||||
if(conformal::on) {
|
if(conformal::on) {
|
||||||
conformal::phase = isize(conformal::v) * i * 1. / noframes;
|
conformal::phase = isize(conformal::v) * i * 1. / noframes;
|
||||||
conformal::movetophase();
|
conformal::movetophase();
|
||||||
@ -568,7 +570,6 @@ bool record_animation() {
|
|||||||
|
|
||||||
char buf[1000];
|
char buf[1000];
|
||||||
snprintf(buf, 1000, animfile.c_str(), i);
|
snprintf(buf, 1000, animfile.c_str(), i);
|
||||||
apply();
|
|
||||||
saveHighQualityShot(buf);
|
saveHighQualityShot(buf);
|
||||||
rollback();
|
rollback();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user