From 0a99955cc9ec0850709e5feb05cbefc47c441aff Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Thu, 17 Aug 2017 16:15:56 +0300 Subject: [PATCH] cosmetix --- src/game/g_map.pas | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); -- 2.29.2