Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Commit

Permalink
Net: Finalized the shit
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Jan 1, 2016
1 parent f424404 commit 89fb6b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions DF Sources/g_main.pas
Expand Up @@ -88,9 +88,7 @@ procedure Release();

procedure Update();
begin
if NetMode = NET_SERVER then g_Net_Host_Update();
g_Game_Update();
if NetMode = NET_CLIENT then g_Net_Client_Update();
end;

procedure Draw();
Expand Down
4 changes: 3 additions & 1 deletion DF Sources/g_window.pas
Expand Up @@ -719,14 +719,16 @@ function ProcessMessage(): Boolean;
Time_Delta := 27777;
wNeedTimeReset := False;
end;


if NetMode = NET_SERVER then g_Net_Host_Update();
t := Time_Delta div 27777;
if t > 0 then
begin
flag := True;
for i := 1 to t do
Update();
end;
if NetMode = NET_CLIENT then g_Net_Client_Update();

if gExit = EXIT_QUIT then
begin
Expand Down

0 comments on commit 89fb6b6

Please sign in to comment.