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:
parent
2da7baa1e0
commit
9151efb300
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user