X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_window.pas;h=b8d0921b589b98eb4190e598cd1f8ea32766a41f;hb=1213aecb7e95da674a8c7032457f109a4db2e1c8;hp=dcd01756f8c7b58c9460a24df21dbcf19bf6c7b1;hpb=15583dd918333276650cbcc705d44dcb55f10199;p=d2df-sdl.git diff --git a/src/game/g_window.pas b/src/game/g_window.pas index dcd0175..b8d0921 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -789,7 +789,6 @@ var procedure ProcessLoading (forceUpdate: Boolean=false); var ev: TSDL_Event; - ID: LongWord; stt: UInt64; begin FillChar(ev, sizeof(ev), 0); @@ -824,14 +823,17 @@ begin end; end; +{$IFNDEF HEADLESS} if forceUpdate then begin - DrawMenuBackground('INTER', ID); + DrawMenuBackground('INTER'); e_DarkenQuadWH(0, 0, gScreenWidth, gScreenHeight, 150); DrawLoadingStat(); + g_Console_Draw(True); SwapBuffers(); end; +{$ENDIF} end; e_SoundUpdate(); @@ -901,6 +903,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 +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);