DEADSOFTWARE

move NilThreadId to utils
authorfgsfds <pvt.fgsfds@gmail.com>
Wed, 11 Mar 2020 19:55:44 +0000 (22:55 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Wed, 11 Mar 2020 19:55:44 +0000 (22:55 +0300)
src/game/g_net.pas
src/shared/utils.pas

index b658c3780919afd56bc5664576957791504d214b..fbc85eec75c06e797d0a006a452f9c33f9e16cbe 100644 (file)
@@ -72,12 +72,6 @@ const
   BANLIST_FILENAME = 'banlist.txt';
   NETDUMP_FILENAME = 'netdump';
 
-  {$IF DEFINED(FREEBSD) OR DEFINED(DARWIN)}
-    NilThreadId = nil;
-  {$ELSE}
-    NilThreadId = 0;
-  {$ENDIF}
-
 type
   TNetMapResourceInfo = record
     wadName: AnsiString; // wad file name, without a path
index 57ce782cad7f8a10c7186575b5143de7b0753888..26150aa3f2e4627706b19df003439de4c7d4a045 100644 (file)
@@ -36,6 +36,12 @@ const wadExtensions: array [0..6] of AnsiString = (
   '.dfzip'
 );
 
+{$IF DEFINED(FREEBSD) OR DEFINED(DARWIN)}
+const NilThreadId = nil;
+{$ELSE}
+const NilThreadId = 0;
+{$ENDIF}
+
 
 // ////////////////////////////////////////////////////////////////////////// //
 type