diff --git a/config.cpp b/config.cpp index 483c61d2..314a263f 100644 --- a/config.cpp +++ b/config.cpp @@ -273,6 +273,15 @@ void initConfig() { addsaver(irr::rearrange_less, "irregular-rearrangeless", 10); addsaver(vid.linequality, "line quality", 0); + + addsaver(anims::animfile, "animation file format"); + addsaver(anims::period, "animation period"); + addsaver(anims::noframes, "animation frames"); + addsaver(anims::cycle_length, "animation cycle length"); + addsaver(anims::parabolic_length, "animation parabolic length"); + addsaver(anims::rug_angle, "animation rug angle"); + addsaver(anims::circle_radius, "animation circle radius"); + addsaver(anims::circle_spins, "animation circle spins"); #if CAP_TEXTURE addsaver(texture::texture_aura, "texture-aura", false); diff --git a/hyper.h b/hyper.h index c27d6b9e..5aa7829f 100644 --- a/hyper.h +++ b/hyper.h @@ -4096,6 +4096,11 @@ namespace anims { bool any_on(); bool any_animation(); bool center_music(); + + extern string animfile; + + extern int noframes; + extern ld period, cycle_length, parabolic_length, rug_angle, circle_radius, circle_spins; } extern int animation_lcm; diff --git a/screenshot.cpp b/screenshot.cpp index 0545ee17..9f0b9e74 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -502,7 +502,7 @@ void rollback() { } #if CAP_FILES -string animfile = "animations/animation-%04d.png"; +string animfile = "animation-%04d.png"; bool record_animation() { for(int i=0; i