diff --git a/src/game/g_grid.pas b/src/game/g_grid.pas
index 5ef72f2ace02f5868e1e16771ffa6eefce4c2f53..27fa615fba297bda231768783ed094bbdc579155 100644 (file)
--- a/src/game/g_grid.pas
+++ b/src/game/g_grid.pas
interface
interface
+{$IFDEF USE_MEMPOOL}
uses
mempool;
uses
mempool;
+{$ENDIF}
const
GridTileSize = 32; // must be power of two!
const
GridTileSize = 32; // must be power of two!
type
TBodyProxyId = Integer;
type
TBodyProxyId = Integer;
- generic TBodyGridBase<ITP> = class(TPoolObject)
+ generic TBodyGridBase<ITP> = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF}
public
type TGridQueryCB = function (obj: ITP; tag: Integer): Boolean is nested; // return `true` to stop
type TGridRayQueryCB = function (obj: ITP; tag: Integer; x, y, prevx, prevy: Integer): Boolean is nested; // return `true` to stop
public
type TGridQueryCB = function (obj: ITP; tag: Integer): Boolean is nested; // return `true` to stop
type TGridRayQueryCB = function (obj: ITP; tag: Integer; x, y, prevx, prevy: Integer): Boolean is nested; // return `true` to stop