aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-09-17 04:30:35 -0600
committerSelene ToyKeeper2023-09-17 04:30:35 -0600
commitde7f6f7719a2ef4c4bd07bf93938bf2ed92a7aee (patch)
tree7d3dfe300103391501eec1b48ce9387affc4715e /spaghetti-monster
parentfixed soft start animation when using smooth ramp on turbo (diff)
downloadanduril-de7f6f7719a2ef4c4bd07bf93938bf2ed92a7aee.tar.gz
anduril-de7f6f7719a2ef4c4bd07bf93938bf2ed92a7aee.tar.bz2
anduril-de7f6f7719a2ef4c4bd07bf93938bf2ed92a7aee.zip
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)
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/smooth-steps.c1
1 files changed, 1 insertions, 0 deletions
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;