Added 'server ready' broadcast to UCS server so clients will reconnect after crash

This commit is contained in:
Uleat
2018-02-26 20:02:27 -05:00
parent c469571f62
commit e547a1e778
11 changed files with 122 additions and 20 deletions
+4 -2
View File
@@ -140,10 +140,12 @@ int main() {
worldserver = new WorldServer;
// now that we can send packets to world, see if there's a
// broadcast opcode that tells the client to relog into ucs
worldserver->ActivateBroadcastServerReadyTimer();
while(RunLoops) {
// this triggers clients to 'reconnect' to ucs after server crash
if (worldserver->HasBroadcastServerReadyTimer())
worldserver->ProcessBroadcastServerReady();
Timer::SetCurrentTime();