Implement (partially) updating pathing grid when opening doors
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ destroyBlock bl w = w
|
||||
& flip (foldr unshadowBlock) (_blShadows bl)
|
||||
& _blDeath bl bl
|
||||
& deleteWallIDs wlids
|
||||
& maybeClearPaths (_blPaths bl) -- must happen after the walls are deleted
|
||||
& maybeClearPaths (_blObstructs bl) -- must happen after the walls are deleted
|
||||
& blocks %~ IM.delete (_blID bl)
|
||||
-- & matDesSound (_blMaterial bl) pos
|
||||
& flip (foldr (wlDustAt awl)) (map (pos +.+) ps)
|
||||
|
||||
Reference in New Issue
Block a user