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:
hondacrx
2019-09-01 10:37:14 -04:00
parent dccded6a96
commit 87d30caa49
38 changed files with 302 additions and 169 deletions
+2 -2
View File
@@ -438,7 +438,7 @@ namespace Game
public void Update()
{
long curTime = Global.WorldMgr.GetGameTime();
long curTime = GameTime.GetGameTime();
// Handle expired auctions
// If storage is empty, no need to update. next == NULL in this case.
@@ -507,7 +507,7 @@ namespace Game
public void BuildListAuctionItems(AuctionListItemsResult packet, Player player, string searchedname, uint listfrom, byte levelmin, byte levelmax, bool usable, Optional<AuctionSearchFilters> filters, uint quality)
{
long curTime = Global.WorldMgr.GetGameTime();
long curTime = GameTime.GetGameTime();
foreach (var Aentry in AuctionsMap.Values)
{