Skip to content

Commit

Permalink
Speculative fix for Discord rich presence staying on after leaving ga…
Browse files Browse the repository at this point in the history
…me (#317)
  • Loading branch information
TotallyMehis committed May 29, 2020
1 parent 8b4c843 commit 5c1fe6f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mp/src/game/client/zmr/c_zmr_discord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,10 @@ void CZMDiscordSystem::LevelShutdownPostEntity()

void CZMDiscordSystem::Update( float frametime )
{
Discord_RunCallbacks();

if ( m_flNextDiscordUpdateTime <= gpGlobals->realtime )
{
Discord_RunCallbacks();


if ( IsConnected() )
{
if ( IsInGame() )
Expand Down

0 comments on commit 5c1fe6f

Please sign in to comment.