summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-10-23 21:45:33 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2023-10-23 21:45:33 +0200
commit31d2196c94b2731b305b5c8704b0a956bf37c544 (patch)
tree39901db0e3be19a12b3ed7078e21653fe7842df1 /lib
parent40f6759106bc429ff49cdaefdf8901ebb68688c1 (diff)
downloadcolonial-twilight-31d2196c94b2731b305b5c8704b0a956bf37c544.zip
colonial-twilight-31d2196c94b2731b305b5c8704b0a956bf37c544.tar.gz
Track : must return new value
Diffstat (limited to 'lib')
-rw-r--r--lib/colonial_twilight/spaces.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/colonial_twilight/spaces.rb b/lib/colonial_twilight/spaces.rb
index 35e99ac..6bf9384 100644
--- a/lib/colonial_twilight/spaces.rb
+++ b/lib/colonial_twilight/spaces.rb
@@ -15,6 +15,7 @@ module ColonialTwilight
def shift(val)
@v += val
raise "out of track #{@v}" if @v.negative? || @v > @max
+ @v
end
def clamp(val)