From 04a67d2951e82c6529f64d25b69ec586e1efbad1 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 7 Apr 2021 18:04:44 +0200 Subject: [PATCH] rogueviz::smoothcam:: fixed -smoothcam-on --- rogueviz/smoothcam.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rogueviz/smoothcam.cpp b/rogueviz/smoothcam.cpp index e0962741..d9875eeb 100644 --- a/rogueviz/smoothcam.cpp +++ b/rogueviz/smoothcam.cpp @@ -546,7 +546,11 @@ void enable_and_show() { } auto hooks = arg::add3("-smoothcam", enable_and_show) - + arg::add3("-smoothcam-on", [] { enable_and_show(); animate_on = true; }) + + arg::add3("-smoothcam-on", [] { + enable_and_show(); + animate_on = true; + last_time = HUGE_VAL; + }) + addHook(dialog::hooks_display_dialog, 100, [] () { if(current_screen_cfunction() == anims::show) { dialog::addItem(XLAT("smooth camera"), 'C');