From: Ketmar Dark Date: Wed, 23 Aug 2017 19:11:50 +0000 (+0300) Subject: skip disabled panels in map rendering collector X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=df5fff669125c1fbd1324ce02a0afe28612f1ddc;p=d2df-sdl.git skip disabled panels in map rendering collector --- diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 746d85c..d41d677 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -2033,7 +2033,7 @@ begin end else} begin - mapGrid.forEachInAABB(x0, y0, wdt, hgt, checker, GridDrawableMask, true); + mapGrid.forEachInAABB(x0, y0, wdt, hgt, checker, GridDrawableMask); end; // list will be rendered in `g_game.DrawPlayer()` end; @@ -2054,7 +2054,7 @@ begin end else} begin - mapGrid.forEachInAABB(lightX-radius, lightY-radius, radius*2, radius*2, checker, (GridTagWall or GridTagDoor), true); + mapGrid.forEachInAABB(lightX-radius, lightY-radius, radius*2, radius*2, checker, (GridTagWall or GridTagDoor)); end; end;