From de7f6f7719a2ef4c4bd07bf93938bf2ed92a7aee Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 17 Sep 2023 04:30:35 -0600 Subject: fixed bug: smooth steps could sometimes turn off entirely when bottom step was too low (stepped ramp floor 1/150 or 2/150), instead of just stepping down (this also seemed to affect 1C from Off, when at stepped ramp floor) (but it didn't affect the smooth ramp) --- spaghetti-monster/anduril/smooth-steps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spaghetti-monster/anduril/smooth-steps.c b/spaghetti-monster/anduril/smooth-steps.c index b5ec0c4..d907bc1 100644 --- a/spaghetti-monster/anduril/smooth-steps.c +++ b/spaghetti-monster/anduril/smooth-steps.c @@ -11,6 +11,7 @@ // one iteration of main loop() void smooth_steps_iter() { if (actual_level == smooth_steps_target) { + set_level(smooth_steps_target); smooth_steps_in_progress = 0; // restore prev_level when animation ends prev_level = smooth_steps_start; -- cgit v1.2.3