Skip to content

Commit

Permalink
fix weather update interval (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongdove authored Oct 1, 2024
1 parent 5006264 commit 57a5a4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/server/game/Maps/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/server/game/World/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/server/game/World/World.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ enum WorldTimers
{
WUPDATE_AUCTIONS,
WUPDATE_AUCTIONS_PENDING,
WUPDATE_WEATHERS,
WUPDATE_UPTIME,
WUPDATE_CORPSES,
WUPDATE_EVENTS,
Expand Down

0 comments on commit 57a5a4c

Please sign in to comment.