X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_window.pas;h=a8c6b6a7b3c3bf8302e95d712e2a2b875750359a;hp=89511af81cd2c15fc309ba95ad06e9c2009db0c5;hb=94c8854f0ba3a87de3928f587e66d5d0e43d8f9b;hpb=9e08e52b1845570063f7491ac5eda3e9470a01c9 diff --git a/src/game/g_window.pas b/src/game/g_window.pas index 89511af..a8c6b6a 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -545,10 +545,17 @@ begin e_SoundUpdate(); if NetMode = NET_SERVER then - g_Net_Host_Update - else - if (NetMode = NET_CLIENT) and (NetState <> NET_STATE_AUTH) then - g_Net_Client_UpdateWhileLoading; + begin + g_Net_Host_Update(); + g_Net_Flush(); + end + else if NetMode = NET_CLIENT then + if (NetState <> NET_STATE_AUTH) then + begin + g_Net_Client_UpdateWhileLoading(); + g_Net_Flush(); + end; + wLoadingProgress := False; end; @@ -586,12 +593,14 @@ begin if NetMode = NET_SERVER then g_Net_Host_Update() else if NetMode = NET_CLIENT then g_Net_Client_Update(); Update(); + if NetMode <> NET_NONE then g_Net_Flush(); end; end - else + else if NetMode <> NET_NONE then begin if NetMode = NET_SERVER then g_Net_Host_Update() else if NetMode = NET_CLIENT then g_Net_Client_Update(); + g_Net_Flush(); end; if wLoadingQuit then