Fix TimeSync to work with new Servertalk connection order

This commit is contained in:
Noudess 2021-09-27 10:04:02 -04:00
parent 7b969173f4
commit d4f14efaa0

View File

@ -153,7 +153,6 @@ bool Zone::Bootup(uint32 iZoneID, uint32 iInstanceID, bool iStaticZone) {
LogInfo("Zone Bootup: [{}] ([{}]: [{}])", zonename, iZoneID, iInstanceID); LogInfo("Zone Bootup: [{}] ([{}]: [{}])", zonename, iZoneID, iInstanceID);
parse->Init(); parse->Init();
UpdateWindowTitle(nullptr); UpdateWindowTitle(nullptr);
zone->GetTimeSync();
zone->RequestUCSServerStatus(); zone->RequestUCSServerStatus();
@ -1818,7 +1817,8 @@ void Zone::Repop(uint32 delay)
void Zone::GetTimeSync() 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); auto pack = new ServerPacket(ServerOP_GetWorldTime, 1);
worldserver.SendPacket(pack); worldserver.SendPacket(pack);
safe_delete(pack); safe_delete(pack);