Make zoning more universal
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ unshadowBlock :: Int -> World -> World
|
||||
unshadowBlock wlid w = case w ^? walls . ix wlid of
|
||||
Just wl -> w
|
||||
& walls . ix wlid . wlDraw .~ True
|
||||
& wallsZone . znObjects . ix x . ix y . ix wlid . wlDraw .~ True
|
||||
& wlZoning . znObjects . ix x . ix y . ix wlid . wlDraw .~ True
|
||||
where
|
||||
V2 x y = wlZoneOfPoint $ uncurry midPoint (_wlLine wl)
|
||||
Nothing -> w
|
||||
|
||||
Reference in New Issue
Block a user