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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user