Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
Probably should refactor all this Discord code to not use Hungarian notation tbh
  • Loading branch information
Lpsd committed Oct 12, 2023
1 parent 3317800 commit fb1250e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Client/mods/deathmatch/logic/luadefs/CLuaDiscordDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ bool CLuaDiscordDefs::SetDetails(std::string strDetails)

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

if (ulTime == 0)
iSecondsSinceEpoch = 0;
ulSecondsSinceEpoch = 0;

auto discord = g_pCore->GetDiscord();

Expand All @@ -134,7 +134,7 @@ bool CLuaDiscordDefs::SetStartTime(unsigned long ulTime)
if (discord->IsDiscordCustomDetailsDisallowed())
return false;

discord->SetPresenceStartTimestamp(iSecondsSinceEpoch);
discord->SetPresenceStartTimestamp(ulSecondsSinceEpoch);
return true;
}
bool CLuaDiscordDefs::SetPartySize(int iSize, int iMax)
Expand Down

0 comments on commit fb1250e

Please sign in to comment.