diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index e7cc9cd5bb37b42372c61a8bc8e9c9000630e066..a8c6b6a7b3c3bf8302e95d712e2a2b875750359a 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*)
-{$MODE DELPHI}
+{$INCLUDE g_amodes.inc}
unit g_window;
interface
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;
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