diff --git a/src/shared/idpool.pas b/src/shared/idpool.pas
index 7817cc160b259ff91a7eef539205e1276ed1b746..14bd43c1a2f4f792babd1720a80e94a9bf2a8cbd 100644 (file)
--- a/src/shared/idpool.pas
+++ b/src/shared/idpool.pas
-(* Copyright (C) DooM 2D:Forever Developers
+(* Copyright (C) Doom 2D: Forever Developers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
+ * the Free Software Foundation, version 3 of the License ONLY.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*)
{$INCLUDE a_modes.inc}
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*)
{$INCLUDE a_modes.inc}
-{$DEFINE IDPOOL_CHECKS}
+{.$DEFINE IDPOOL_CHECKS}
unit idpool;
interface
unit idpool;
interface
+{$IFDEF USE_MEMPOOL}
+uses
+ mempool;
+{$ENDIF}
+
+
// ////////////////////////////////////////////////////////////////////////// //
type
//TODO: implement getting n sequential ids
// ////////////////////////////////////////////////////////////////////////// //
type
//TODO: implement getting n sequential ids
- TIdPool = class(TObject)
+ TIdPool = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF}
public
const InvalidId = $ffffffff;
public
const InvalidId = $ffffffff;