From 31d2196c94b2731b305b5c8704b0a956bf37c544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 23 Oct 2023 21:45:33 +0200 Subject: Track : must return new value --- lib/colonial_twilight/spaces.rb | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.1-2-g2b99