Skip to content

Commit

Permalink
BUG: showPlayTime doesn't work in game
Browse files Browse the repository at this point in the history
- Issue not fixed
  • Loading branch information
TheRouletteBoi committed Aug 24, 2022
1 parent aac3e8e commit 126d690
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Core/Overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ void Overlay::DrawOverlay()
overlayText += appName;
}

if (g_Config.overlay.mode[(int)m_CooperationMode].showPlayTime)
if (g_Config.overlay.mode[(int)m_CooperationMode].showPlayTime && gamePlugin)
{
uint64_t msec = 0;
if (gamePlugin) // check if we are in game
if (!msec)
msec = GetCurrentTick();
else
msec = 0;

if (!msec)
msec = GetCurrentTick();
else
msec = 0;

if (msec)
{
Expand Down

0 comments on commit 126d690

Please sign in to comment.