Skip to content

Commit

Permalink
Clarify comment and decrease timer delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen-H2O committed Jul 10, 2024
1 parent c922ef3 commit 5959487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detours.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ void FASTCALL Detour_CEntityIOOutput_FireOutputInternal(CEntityIOOutput* pThis,
strMessage = strMessage + "\1 pressed button \x0C" + std::to_string(pCaller->GetEntityIndex().Get()) + " ";
strMessage.append(((CBaseEntity*)pCaller)->GetName());

// Dont ask why this timer is here...
new CTimer(0.1f, false, false, [strMessage]()
// ClientPrint doesn't work when called directly in here for some reason, so use in a timer instead
new CTimer(0.0f, false, false, [strMessage]()
{
for (int i = 0; i < gpGlobals->maxClients; i++)
{
Expand Down

0 comments on commit 5959487

Please sign in to comment.