server: buttons: env_state: fix debug output

This commit is contained in:
Alibek Omarov 2022-09-08 04:10:11 +03:00
parent c9a3d89fa6
commit d396ccf622
1 changed files with 2 additions and 0 deletions

View File

@ -310,9 +310,11 @@ void CEnvState::Think( void )
{
ALERT(at_console,"DEBUG: env_state \"%s\" turned itself off",STRING(pev->targetname));
if (pev->target)
{
ALERT(at_console,": firing %s",STRING(pev->target));
if (pev->noise2)
ALERT(at_console," and %s",STRING(pev->noise2));
}
else if (pev->noise2)
ALERT(at_console,": firing %s",STRING(pev->noise2));
ALERT(at_console,".\n");