Skip to content

Commit

Permalink
engine: client: print correct message names in legacymode
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Apr 22, 2024
1 parent db10035 commit 75451cc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion engine/client/cl_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ const char *CL_MsgInfo( int cmd )
if( cmd >= 0 && cmd <= svc_lastmsg )
{
// get engine message name
Q_strncpy( sz, svc_strings[cmd], sizeof( sz ));
const char *svc_string = NULL;

if( cls.legacymode )
svc_string = svc_legacy_strings[cmd];

if( !svc_string )
svc_string = svc_strings[cmd];

Q_strncpy( sz, svc_string, sizeof( sz ));
}
else if( cmd > svc_lastmsg && cmd <= ( svc_lastmsg + MAX_USER_MESSAGES ))
{
Expand Down

0 comments on commit 75451cc

Please sign in to comment.