From 1cefbd2ffa2113337aa319605cd3692377381b2b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 14 Nov 2020 14:18:57 +0100 Subject: [PATCH] anim:: record animation of another content --- raycaster.cpp | 2 +- screenshot.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/raycaster.cpp b/raycaster.cpp index 06be405e..cdcfe8c2 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -71,7 +71,7 @@ ld& maxstep_current() { eGeometry last_geometry; bool need_many_cell_types() { - return isize(hybrid::gen_sample_list()) > 1; + return isize(hybrid::gen_sample_list()) > 2; } /** is the raycaster available? */ diff --git a/screenshot.cpp b/screenshot.cpp index 8d36ed24..b4f06a33 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -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;