Skip to content

Commit

Permalink
Fix g_engfuncs.pfnClientCommand call
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn committed Jan 6, 2024
1 parent 0f2c35a commit f733aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CSDM/CSDM_Misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ void CCSDM_Misc::PlayerKilled(CBasePlayer* Victim, CBasePlayer* Killer)
{
if (this->m_kill_sound->value == 2.0f)
{
g_engfuncs.pfnClientCommand(Killer->edict(), "speak \"sound/fvox/blip.wav\"\n");
g_engfuncs.pfnClientCommand(Killer->edict(), "%s", "speak \"sound/fvox/blip.wav\"\n");
}
}
else
{
g_engfuncs.pfnClientCommand(Killer->edict(), "speak \"sound/fvox/blip.wav\"\n");
g_engfuncs.pfnClientCommand(Killer->edict(), "%s", "speak \"sound/fvox/blip.wav\"\n");
}
}

Expand Down

0 comments on commit f733aa8

Please sign in to comment.