mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-12 15:26:00 +00:00
rogueviz::smoothcam:: fixed -smoothcam-on
This commit is contained in:
@@ -546,7 +546,11 @@ void enable_and_show() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto hooks = arg::add3("-smoothcam", 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, [] () {
|
+ addHook(dialog::hooks_display_dialog, 100, [] () {
|
||||||
if(current_screen_cfunction() == anims::show) {
|
if(current_screen_cfunction() == anims::show) {
|
||||||
dialog::addItem(XLAT("smooth camera"), 'C');
|
dialog::addItem(XLAT("smooth camera"), 'C');
|
||||||
|
Reference in New Issue
Block a user