Core/Misc: Replace Time.UnixTime with GameTime.GetGameTime()
Port From (https://github.com/TrinityCore/TrinityCore/commit/e17e4e6f0700c7d950e1b2654c217ec8b28ae79e)
This commit is contained in:
@@ -270,7 +270,7 @@ namespace Game.Networking.Packets
|
||||
break;
|
||||
}
|
||||
|
||||
TimeLeft = mail.deliver_time - Time.UnixTime;
|
||||
TimeLeft = mail.deliver_time - GameTime.GetGameTime();
|
||||
AltSenderType = (sbyte)mail.messageType;
|
||||
StationeryID = (int)mail.stationery;
|
||||
}
|
||||
@@ -400,7 +400,7 @@ namespace Game.Networking.Packets
|
||||
StationeryID = (int)mail.stationery;
|
||||
SentMoney = mail.money;
|
||||
Flags = (int)mail.checkMask;
|
||||
DaysLeft = (float)(mail.expire_time - Time.UnixTime) / Time.Day;
|
||||
DaysLeft = (float)(mail.expire_time - GameTime.GetGameTime()) / Time.Day;
|
||||
MailTemplateID = (int)mail.mailTemplateId;
|
||||
Subject = mail.subject;
|
||||
Body = mail.body;
|
||||
|
||||
Reference in New Issue
Block a user