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

Commit

Permalink
server reconnects to master after connection loss
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Oct 17, 2015
1 parent 62f32fc commit 3918e15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DF Sources/g_game.pas
Expand Up @@ -1315,6 +1315,10 @@ procedure g_Game_Update();
if NetUseMaster then
if gTime >= NetTimeToMaster then
begin
if (NetMHost = nil) or (NetMPeer = nil) then
if not g_Net_Slist_Connect then
g_Console_Add(_lc[I_NET_MSG_ERROR] + _lc[I_NET_SLIST_ERROR]);

g_Net_Slist_Update;
NetTimeToMaster := gTime + NetMasterRate;
end;
Expand Down

0 comments on commit 3918e15

Please sign in to comment.