DEADSOFTWARE

menu: optionally disable menu in client
[d2df-sdl.git] / src / game / g_netmsg.pas
index 816673a180455a7289cd40b3332b97b40a39cad7..f3b095591d8b08a94c4296b2360403a1ed88506c 100644 (file)
@@ -276,7 +276,7 @@ function IsValidFilePath(const S: String): Boolean;
 implementation
 
 uses
-  {$IFNDEF HEADLESS}
+  {$IFDEF ENABLE_MENU}
     g_gui,
   {$ENDIF}
   Math, ENet, e_input, e_log, g_base, g_basic,
@@ -2943,7 +2943,7 @@ begin
   kByte := 0;
   Predict := NetPredictSelf; // and (not NetGotKeys);
 
-{$IFDEF HEADLESS}
+{$IFDEF DISABLE_MENU}
   if (not gConsoleShow) and (not gChatShow) then
 {$ELSE}
   if (not gConsoleShow) and (not gChatShow) and (g_ActiveWindow = nil) then