work around qssm's proquake stuff.

This commit is contained in:
Shpoike 2023-04-11 08:20:09 +01:00
parent eaf59671a4
commit e81b140614

View file

@ -35,6 +35,7 @@ static char *CLNQ_ParseProQuakeMessage (char *s);
#endif #endif
static void DLC_Poll(qdownload_t *dl); static void DLC_Poll(qdownload_t *dl);
static void CL_ProcessUserInfo (int slot, player_info_t *player); static void CL_ProcessUserInfo (int slot, player_info_t *player);
static void Con_HexDump(qbyte *packet, size_t len, size_t badoffset);
#ifdef NQPROT #ifdef NQPROT
char *cl_dp_packagenames; char *cl_dp_packagenames;
@ -6697,9 +6698,13 @@ static void CL_ParseStuffCmd(char *msg, int destsplit) //this protects stuffcmds
{ {
int cbuflevel; int cbuflevel;
#ifdef NQPROT #ifdef NQPROT
if (!*stufftext && *msg == 1 && !cls.allow_csqc) if (!*stufftext && *msg == 1)
{ {
Con_DPrintf("Proquake: %s\n", msg); if (developer.ival)
{
Con_DPrintf("Proquake Message:\n");
Con_HexDump(msg, strlen(msg), 1);
}
msg = CLNQ_ParseProQuakeMessage(msg); msg = CLNQ_ParseProQuakeMessage(msg);
} }
#endif #endif