X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame%2Fg_window.pas;h=3e38a841fc74351bd56529596f5bc29b2aa2450e;hb=24f025e51e5faa8c8f28f6ec6614335a5977303a;hp=88b229aa220b888697903da121c21f01e0bbe0f4;hpb=683e1735a7efbf7342dec58a49d7f559a1e75fea;p=d2df-sdl.git diff --git a/src/game/g_window.pas b/src/game/g_window.pas index 88b229a..3e38a84 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -2,8 +2,7 @@ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -823,6 +822,7 @@ begin end; end; +{$IFNDEF HEADLESS} if forceUpdate then begin DrawMenuBackground('INTER'); @@ -832,6 +832,7 @@ begin g_Console_Draw(True); SwapBuffers(); end; +{$ENDIF} end; e_SoundUpdate(); @@ -901,6 +902,8 @@ begin 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(); @@ -1175,8 +1178,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);