From 2dd4ef868b45bf7bf92d60ed47fef8ce0603873c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 30 Nov 2023 12:32:50 +0100 Subject: [PATCH] export record_frame_id --- screenshot.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/screenshot.cpp b/screenshot.cpp index 6362f247..ba5d7425 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -1390,11 +1390,14 @@ int numturns = 0; EX hookset hooks_record_anim; +EX int record_frame_id = -1; + EX bool record_animation_of(reaction_t content) { lastticks = 0; ticks = 0; int oldturn = -1; for(int i=0; i max_frame) continue; println(hlog, "record frame ",i, "/", noframes, " of ", videofile); callhooks(hooks_record_anim, i, noframes); @@ -1433,6 +1436,7 @@ EX bool record_animation_of(reaction_t content) { shot::take(buf, content); } lastticks = ticks = SDL_GetTicks(); + record_frame_id = -1; return true; }