aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-09-17 04:30:35 -0600
committerSelene ToyKeeper2023-09-17 04:30:35 -0600
commitde7f6f7719a2ef4c4bd07bf93938bf2ed92a7aee (patch)
tree7d3dfe300103391501eec1b48ce9387affc4715e
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)
-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;
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.