1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00

anim:: record animation of another content

This commit is contained in:
Zeno Rogue 2020-11-14 14:18:57 +01:00
parent 1ad581b9a8
commit 1cefbd2ffa
2 changed files with 6 additions and 2 deletions

View File

@ -71,7 +71,7 @@ ld& maxstep_current() {
eGeometry last_geometry; eGeometry last_geometry;
bool need_many_cell_types() { bool need_many_cell_types() {
return isize(hybrid::gen_sample_list()) > 1; return isize(hybrid::gen_sample_list()) > 2;
} }
/** is the raycaster available? */ /** is the raycaster available? */

View File

@ -1328,7 +1328,7 @@ int min_frame = 0, max_frame = 999999;
int numturns = 0; int numturns = 0;
EX bool record_animation() { EX bool record_animation_of(reaction_t content) {
lastticks = 0; lastticks = 0;
ticks = 0; ticks = 0;
int oldturn = -1; int oldturn = -1;
@ -1361,6 +1361,10 @@ EX bool record_animation() {
lastticks = ticks = SDL_GetTicks(); lastticks = ticks = SDL_GetTicks();
return true; return true;
} }
EX bool record_animation() {
return record_animation_of(shot::default_screenshot_content);
}
#endif #endif
EX purehookset hooks_after_video; EX purehookset hooks_after_video;