diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 88b229aa220b888697903da121c21f01e0bbe0f4..b8d0921b589b98eb4190e598cd1f8ea32766a41f 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
end;
end;
end;
end;
+{$IFNDEF HEADLESS}
if forceUpdate then
begin
DrawMenuBackground('INTER');
if forceUpdate then
begin
DrawMenuBackground('INTER');
g_Console_Draw(True);
SwapBuffers();
end;
g_Console_Draw(True);
SwapBuffers();
end;
+{$ENDIF}
end;
e_SoundUpdate();
end;
e_SoundUpdate();
else if (NetMode = NET_CLIENT) then g_Net_Client_Update();
end;
else if (NetMode = NET_CLIENT) then g_Net_Client_Update();
end;
+ if NetMode = NET_SERVER then g_Net_Flush();
+
g_Map_ProfilersEnd();
g_Mons_ProfilersEnd();
g_Map_ProfilersEnd();
g_Mons_ProfilersEnd();
// Êîìàíäíàÿ ñòðîêà
if (ParamCount > 0) then g_Game_Process_Params();
// Êîìàíäíàÿ ñòðîêà
if (ParamCount > 0) then g_Game_Process_Params();
+{$IFNDEF HEADLESS}
// Çàïðîñ ÿçûêà
if (not gGameOn) and gAskLanguage then g_Menu_AskLanguage();
// Çàïðîñ ÿçûêà
if (not gGameOn) and gAskLanguage then g_Menu_AskLanguage();
+{$ENDIF}
e_WriteLog('Entering the main loop', TMsgType.Notify);
e_WriteLog('Entering the main loop', TMsgType.Notify);