From 147451841578601c75da72a7a8dc43bea1a8d712 Mon Sep 17 00:00:00 2001 From: wootguy Date: Tue, 10 Sep 2024 12:22:55 -0700 Subject: [PATCH] fix corrupt model logging breaking the ssh console corrupted model event option text can contain some sort of special commands that break the ssh console --- dlls/CBaseAnimating.cpp | 4 ++-- dlls/monster/CRoach.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/CBaseAnimating.cpp b/dlls/CBaseAnimating.cpp index 14a30f94..3b8d03bb 100644 --- a/dlls/CBaseAnimating.cpp +++ b/dlls/CBaseAnimating.cpp @@ -166,8 +166,8 @@ void CBaseAnimating :: DispatchAnimEvents ( float flInterval ) HandleAnimEvent( &event ); if (!ModelIsValid(pev, (studiohdr_t*)pmodel)) { - ALERT(at_error, "model corruption after HandleAnimEvent! %s was sent event %d '%s'\n", - STRING(pev->classname), event.event, event.options); + ALERT(at_error, "model corruption after HandleAnimEvent! %s was sent event %d\n", + STRING(pev->classname), event.event); break; } } diff --git a/dlls/monster/CRoach.cpp b/dlls/monster/CRoach.cpp index 30810b26..ab035ada 100644 --- a/dlls/monster/CRoach.cpp +++ b/dlls/monster/CRoach.cpp @@ -453,7 +453,7 @@ void CRoach :: Look ( int iDistance ) case R_NO: break; default: - ALERT ( at_console, "%s can't asses %s\n", STRING(pev->classname), STRING(pSightEnt->pev->classname ) ); + ALERT ( at_aiconsole, "%s can't asses %s\n", STRING(pev->classname), STRING(pSightEnt->pev->classname ) ); break; } }