Commit mid add time scroll
This commit is contained in:
+1
-1
@@ -11,5 +11,5 @@ clockCycle :: Int -> V.Vector a -> World -> a
|
||||
clockCycle tPeriod xs w = xs V.! i
|
||||
where
|
||||
l = V.length xs
|
||||
t = (w ^. cWorld . cwTime . worldClock) `mod` (l * tPeriod)
|
||||
t = (w ^. cwTime . worldClock) `mod` (l * tPeriod)
|
||||
i = t `div` tPeriod
|
||||
|
||||
Reference in New Issue
Block a user