1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 06:27:17 +00:00

a flag to check whether we are recording a video

This commit is contained in:
Zeno Rogue 2024-08-21 19:21:47 +02:00
parent 2da7baa1e0
commit 9151efb300

View File

@ -1392,10 +1392,13 @@ EX hookset<void(int, int)> hooks_record_anim;
EX int record_frame_id = -1;
EX bool recording_video;
EX bool record_animation_of(reaction_t content) {
lastticks = 0;
ticks = 0;
int oldturn = -1;
dynamicval<bool> rv(recording_video, true);
for(int i=0; i<noframes; i++) {
record_frame_id = i;
if(i < min_frame || i > max_frame) continue;