From 1f9a79d45d79fe451bd7e2153c2756aaa62a2bf6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 6 Aug 2019 21:10:52 +0200 Subject: [PATCH] shots:: take now sets cells_generated_limit only in single shots via GUI --- screenshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenshot.cpp b/screenshot.cpp index d9c71166..6ea5573a 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -313,7 +313,6 @@ void take(string fname, const function& what) { dynamicval v2(inHighQual, true); dynamicval v6(auraNOGL, true); dynamicval vn(nohud, nohud || hide_hud); - dynamicval cgl(vid.cells_generated_limit, 9999999); vid.smart_range_detail *= multiplier; darken = 0; @@ -459,6 +458,7 @@ void menu() { static string svgfile = "svgshot.svg"; string& file = make_svg ? svgfile : pngfile; dialog::openFileDialog(file, XLAT("screenshot"), make_svg ? ".svg" : ".png", [&file] () { + dynamicval cgl(vid.cells_generated_limit, 9999999); shot::take(file); return true; });