Refactor dynamic camera code

This commit is contained in:
2021-08-18 18:52:09 +02:00
parent 910c29a510
commit 349f4c2783
2 changed files with 42 additions and 15 deletions
+1
View File
@@ -88,6 +88,7 @@ functionalUpdate w = case _menuLayers w of
where
(x,y) = cloudZoneOfPoint $ _clPos cl
-- | Note the explict use of record syntax. Using lens creates a space leak.
resetWorldEvents :: World -> World
resetWorldEvents w = w {_worldEvents = id}