Skip to content

Commit

Permalink
Revert GetTickCount64_ usage where unix epoch necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Lpsd committed Oct 16, 2023
1 parent bff9390 commit 65bc6d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/mods/deathmatch/logic/luadefs/CLuaDiscordDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ bool CLuaDiscordDefs::SetDetails(std::string strDetails)

bool CLuaDiscordDefs::SetStartTime(unsigned long ulTime)
{
unsigned long ulSecondsSinceEpoch = GetTickCount64_() + ulTime;
unsigned long ulSecondsSinceEpoch = time(nullptr) + ulTime;

if (ulTime == 0)
ulSecondsSinceEpoch = 0;
Expand All @@ -142,7 +142,7 @@ bool CLuaDiscordDefs::SetStartTime(unsigned long ulTime)

bool CLuaDiscordDefs::SetEndTime(unsigned long ulTime)
{
unsigned long ulSecondsSinceEpoch = GetTickCount64_() + ulTime;
unsigned long ulSecondsSinceEpoch = time(nullptr) + ulTime;

if (ulTime == 0)
ulSecondsSinceEpoch = 0;
Expand Down

0 comments on commit 65bc6d1

Please sign in to comment.