1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 19:07:40 +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

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