Cleanup zoning
This commit is contained in:
+4
-1
@@ -97,7 +97,10 @@ functionalUpdate cfig w = checkEndGame
|
||||
$ updateCloseObjects w
|
||||
where
|
||||
--updatedLightSources = mapMaybe (\b -> _tlsUpdate b w b) $ _tempLightSources w
|
||||
zoneClouds = set (cloudsZone . znObjects) (foldl' (flip cloudInZone) IM.empty (_clouds w))
|
||||
|
||||
zoneClouds :: World -> World
|
||||
zoneClouds w = w & set (cloudsZone . znObjects) (foldl' (flip cloudInZone) IM.empty (_clouds w))
|
||||
where
|
||||
cloudInZone cl = insertInZoneWith x y (++) [cl]
|
||||
where
|
||||
V2 x y = clZoneOfPoint $ stripZ $ _clPos cl
|
||||
|
||||
Reference in New Issue
Block a user