Skip to content

Commit

Permalink
fix corrupt model logging breaking the ssh console
Browse files Browse the repository at this point in the history
corrupted model event option text can contain some sort of special commands that break the ssh console
  • Loading branch information
wootguy committed Sep 10, 2024
1 parent 833d665 commit 1474518
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dlls/CBaseAnimating.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion dlls/monster/CRoach.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 1474518

Please sign in to comment.