1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

rogueviz::smoothcam:: fixed -smoothcam-on

This commit is contained in:
Zeno Rogue 2021-04-07 18:04:44 +02:00
parent f923b45973
commit 04a67d2951

View File

@ -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');