From d396ccf622a723f5a86b3c3fbadff338dcdf585c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 8 Sep 2022 04:10:11 +0300 Subject: [PATCH] server: buttons: env_state: fix debug output --- dlls/buttons.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/buttons.cpp b/dlls/buttons.cpp index 44f0f230..4f775908 100644 --- a/dlls/buttons.cpp +++ b/dlls/buttons.cpp @@ -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");