X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_window.pas;h=a8c6b6a7b3c3bf8302e95d712e2a2b875750359a;hb=94c8854f0ba3a87de3928f587e66d5d0e43d8f9b;hp=e7cc9cd5bb37b42372c61a8bc8e9c9000630e066;hpb=7d312543a62c1a290f329110d16835c9065f0147;p=d2df-sdl.git diff --git a/src/game/g_window.pas b/src/game/g_window.pas index e7cc9cd..a8c6b6a 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . *) -{$MODE DELPHI} +{$INCLUDE g_amodes.inc} unit g_window; interface @@ -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