aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-04-16 11:20:19 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-04-16 11:20:33 +0100
commit3eb66a2125caefe61729c0999c8813c3847957cd (patch)
tree03c1a34abce15444ee26e162574ecdb6c6317e4d
parent9ac5ca2ad326667a182686aa48c4a4da45f4f5ce (diff)
downloadspace-plat-hs-3eb66a2125caefe61729c0999c8813c3847957cd.tar.gz
space-plat-hs-3eb66a2125caefe61729c0999c8813c3847957cd.zip
Removed unnecessary $
-rw-r--r--src/Game/Toaster.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Game/Toaster.hs b/src/Game/Toaster.hs
index e3fbc69..75907eb 100644
--- a/src/Game/Toaster.hs
+++ b/src/Game/Toaster.hs
@@ -44,9 +44,9 @@ update t = case t.current of
where
updateToast :: Int -> Toast -> Maybe Toast
updateToast height toast
- | toast.y > height && toast.delay > 0 = Just $ toast {y = toast.y - 1}
- | toast.delay > 0 = Just $ toast {delay = toast.delay - 1}
- | toast.y < t.gameHeight = Just $ toast {y = toast.y + 1}
+ | toast.y > height && toast.delay > 0 = Just toast {y = toast.y - 1}
+ | toast.delay > 0 = Just toast {delay = toast.delay - 1}
+ | toast.y < t.gameHeight = Just toast {y = toast.y + 1}
| otherwise = Nothing
render :: SDL.Renderer -> Toaster -> IO ()