mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Time: Rename GetGameTime{System, Steady}Point methods
The names are a bit unhandy. Rename them (shorter but still meaningful).
GetGameTimeSystemPoint() -> GetSystemTime()
GetGameTimeSteadyPoint() -> Now()
Also add 2 new typedefs:
typedef std::chrono::steady_clock::time_point TimePoint;
typedef std::chrono::system_clock::time_point SystemTimePoint;
Closes #25042
(cherry picked from commit 896b68d5c2)
This commit is contained in:
@@ -60,7 +60,7 @@ void WorldSession::HandleQueryTimeOpcode(WorldPackets::Query::QueryTime& /*query
|
||||
void WorldSession::SendQueryTimeResponse()
|
||||
{
|
||||
WorldPackets::Query::QueryTimeResponse queryTimeResponse;
|
||||
queryTimeResponse.CurrentTime = GameTime::GetGameTimeSystemPoint();
|
||||
queryTimeResponse.CurrentTime = GameTime::GetSystemTime();
|
||||
SendPacket(queryTimeResponse.Write());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user