From d4f14efaa080ef8acbe9e9f91faf7a389f49be64 Mon Sep 17 00:00:00 2001 From: Noudess Date: Mon, 27 Sep 2021 10:04:02 -0400 Subject: [PATCH] Fix TimeSync to work with new Servertalk connection order --- zone/zone.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/zone.cpp b/zone/zone.cpp index 98fb346aa..e5b810a1f 100755 --- a/zone/zone.cpp +++ b/zone/zone.cpp @@ -153,7 +153,6 @@ bool Zone::Bootup(uint32 iZoneID, uint32 iInstanceID, bool iStaticZone) { LogInfo("Zone Bootup: [{}] ([{}]: [{}])", zonename, iZoneID, iInstanceID); parse->Init(); UpdateWindowTitle(nullptr); - zone->GetTimeSync(); zone->RequestUCSServerStatus(); @@ -1818,7 +1817,8 @@ void Zone::Repop(uint32 delay) void Zone::GetTimeSync() { - if (worldserver.Connected() && !zone_has_current_time) { + if (!zone_has_current_time) { + LogInfo("Requesting world time"); auto pack = new ServerPacket(ServerOP_GetWorldTime, 1); worldserver.SendPacket(pack); safe_delete(pack);