mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
Fix TimeSync to work with new Servertalk connection order
This commit is contained in:
parent
7b969173f4
commit
d4f14efaa0
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user