From: fgsfds Date: Wed, 11 Mar 2020 19:55:44 +0000 (+0300) Subject: move NilThreadId to utils X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=36e374af750d9e3f049d97d9849a6629ff9b149b;p=d2df-sdl.git move NilThreadId to utils --- diff --git a/src/game/g_net.pas b/src/game/g_net.pas index b658c37..fbc85ee 100644 --- a/src/game/g_net.pas +++ b/src/game/g_net.pas @@ -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 diff --git a/src/shared/utils.pas b/src/shared/utils.pas index 57ce782..26150aa 100644 --- a/src/shared/utils.pas +++ b/src/shared/utils.pas @@ -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