DEADSOFTWARE

disable menu handling in headless version
[d2df-sdl.git] / src / game / g_window.pas
index d703ea2fc2088a829bfa3af1bf07b83d31b44f16..b8d0921b589b98eb4190e598cd1f8ea32766a41f 100644 (file)
@@ -823,6 +823,7 @@ begin
       end;
     end;
 
+{$IFNDEF HEADLESS}
     if forceUpdate then
     begin
       DrawMenuBackground('INTER');
@@ -832,6 +833,7 @@ begin
       g_Console_Draw(True);
       SwapBuffers();
     end;
+{$ENDIF}
   end;
 
   e_SoundUpdate();
@@ -1177,8 +1179,10 @@ begin
   // Êîìàíäíàÿ ñòðîêà
   if (ParamCount > 0) then g_Game_Process_Params();
 
+{$IFNDEF HEADLESS}
   // Çàïðîñ ÿçûêà
   if (not gGameOn) and gAskLanguage then g_Menu_AskLanguage();
+{$ENDIF}
 
   e_WriteLog('Entering the main loop', TMsgType.Notify);