Commit before cloud changes

This commit is contained in:
jgk
2021-07-20 23:45:45 +02:00
parent dd73c9c81c
commit af44a380fc
2 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -110,7 +110,8 @@ creaturesNearPointI n p w = IM.unions [f b $ f a $ _creaturesZone w | a<-[x-n..
_ -> IM.empty
cloudsNearPoint :: Point2 -> World -> IM.IntMap Cloud
cloudsNearPoint p w = IM.unions [f b $ f a $ _cloudsZone w | a<-[x-1,x,x+1] , b<-[y-1,y,y+1]]
--cloudsNearPoint p w = IM.unions [f b $ f a $ _cloudsZone w | a<-[x-1,x,x+1] , b<-[y-1,y,y+1]]
cloudsNearPoint p w = f y $ f x $ _cloudsZone w
where
(x,y) = cloudZoneOfPoint p
f i m = case IM.lookup i m of