summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0010896)
raw | patch | inline | side by side (parent: 0010896)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 24 Aug 2017 22:00:49 +0000 (01:00 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 24 Aug 2017 22:01:19 +0000 (01:01 +0300) |
src/game/g_grid.pas | patch | blob | history |
diff --git a/src/game/g_grid.pas b/src/game/g_grid.pas
index 153e6faa7bcc76f8339c2165c8d12a018cfd026b..882ef3a4504ac3cfae567a8b9906c084065a825a 100644 (file)
--- a/src/game/g_grid.pas
+++ b/src/game/g_grid.pas
{.$DEFINE D2F_DEBUG_XXQ}
{.$DEFINE D2F_DEBUG_MOVER}
{$ENDIF}
+{.$DEFINE GRID_USE_ORTHO_ACCEL}
unit g_grid;
interface
end;
lq := mLastQuery;
+ {$IFDEF GRID_USE_ORTHO_ACCEL}
// if this is strict horizontal trace, use optimized codepath
if (ax0 = ax1) or (ay0 = ay1) then
begin
if wasHit and not assigned(cb) then result := lastObj else begin ex := ax1; ey := ay1; end;
exit;
end;
+ {$ENDIF}
{$IF DEFINED(D2F_DEBUG_RAYTRACE)}
if assigned(dbgRayTraceTileHitCB) then dbgRayTraceTileHitCB((xptr^ div tsize*tsize)+minx, (yptr^ div tsize*tsize)+miny);