Ensure that all actions are compared to fixed point in time (ie. world update start)
Port From (https://github.com/TrinityCore/TrinityCore/commit/60663d1374beef3103f4787152654034fa4a8897)
This commit is contained in:
@@ -150,7 +150,7 @@ namespace Game
|
||||
WeatherType old_type = m_type;
|
||||
float old_grade = m_grade;
|
||||
|
||||
long gtime = Global.WorldMgr.GetGameTime();
|
||||
long gtime = GameTime.GetGameTime();
|
||||
var ltime = Time.UnixTimeToDateTime(gtime).ToLocalTime();
|
||||
uint season = (uint)((ltime.DayOfYear - 78 + 365) / 91) % 4;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user