From 57a5a4c8884f20876da08da60b77bd1287c8af99 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Mon, 30 Sep 2024 20:08:42 -0500 Subject: [PATCH] fix weather update interval (#354) --- src/server/game/Maps/Map.cpp | 2 ++ src/server/game/World/World.cpp | 1 - src/server/game/World/World.h | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index e9d074e1..adca8305 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -266,6 +266,8 @@ i_scriptLock(false), _defaultLight(GetDefaultMapLight(id)) //lets initialize visibility distance for map Map::InitVisibilityDistance(); + _weatherUpdateTimer.SetInterval(time_t(1 * IN_MILLISECONDS)); + _poolData = sPoolMgr->InitPoolsForMap(this); sScriptMgr->OnCreateMap(this); diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index 4d209ca3..87bd9169 100644 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -2284,7 +2284,6 @@ void World::SetInitialWorldSettings() LoginDatabase.PExecute("INSERT INTO uptime (realmid, starttime, uptime, revision) VALUES(%u, %u, 0, '%s')", realm.Id.Realm, uint32(m_startTime), GitRevision::GetFullVersion()); // One-time query - m_timers[WUPDATE_WEATHERS].SetInterval(1*IN_MILLISECONDS); m_timers[WUPDATE_AUCTIONS].SetInterval(MINUTE*IN_MILLISECONDS); m_timers[WUPDATE_AUCTIONS_PENDING].SetInterval(250); m_timers[WUPDATE_BLACK_MARKET].SetInterval(MINUTE*IN_MILLISECONDS); diff --git a/src/server/game/World/World.h b/src/server/game/World/World.h index 946ba574..a895e02a 100644 --- a/src/server/game/World/World.h +++ b/src/server/game/World/World.h @@ -90,7 +90,6 @@ enum WorldTimers { WUPDATE_AUCTIONS, WUPDATE_AUCTIONS_PENDING, - WUPDATE_WEATHERS, WUPDATE_UPTIME, WUPDATE_CORPSES, WUPDATE_EVENTS,