From: Ketmar Dark Date: Thu, 17 Aug 2017 13:15:56 +0000 (+0300) Subject: cosmetix X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=0a99955cc9ec0850709e5feb05cbefc47c441aff;p=d2df-sdl.git cosmetix --- diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 77660a8..2579d27 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -2280,15 +2280,15 @@ begin //TODO: detailed profile? if (profMapCollision <> nil) then profMapCollision.sectionBeginAccum('liquid coldet'); try - if not gdbg_map_use_grid_coldet then - begin - result := g_Map_CollideLiquid_TextureOld(X, Y, Width, Height); - end - else + if gdbg_map_use_grid_coldet then begin texid := TEXTURE_NONE; gMapGrid.forEachInAABB(X, Y, Width, Height, checker); result := texid; + end + else + begin + result := g_Map_CollideLiquid_TextureOld(X, Y, Width, Height); end; finally if (profMapCollision <> nil) then profMapCollision.sectionEnd();