Core/Calendar: Implement different timezone support for ingame calendar
Port From (https://github.com/TrinityCore/TrinityCore/commit/b888b1b09f71a8b8b4a9d45c804a1f164fb65ac3)
This commit is contained in:
@@ -1790,9 +1790,12 @@ namespace Game.Achievements
|
||||
break;
|
||||
case ModifierTreeType.TimeBetween: // 109
|
||||
{
|
||||
long from = Time.GetUnixTimeFromPackedTime(reqValue);
|
||||
long to = Time.GetUnixTimeFromPackedTime((uint)secondaryAsset);
|
||||
if (GameTime.GetGameTime() < from || GameTime.GetGameTime() > to)
|
||||
WowTime from = new();
|
||||
from.SetPackedTime(reqValue);
|
||||
WowTime to = new();
|
||||
to.SetPackedTime((uint)secondaryAsset);
|
||||
|
||||
if (!GameTime.GetWowTime().IsInRange(from, to))
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user