From 5f117f2c9e70505b9fee071fadcc935905278beb Mon Sep 17 00:00:00 2001 From: In-line Date: Tue, 25 Apr 2017 18:38:20 +0400 Subject: [PATCH] Add REHLDS_FIXES checks --- rehlds/engine/pr_cmds.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/rehlds/engine/pr_cmds.cpp b/rehlds/engine/pr_cmds.cpp index da94826..9ddc37d 100644 --- a/rehlds/engine/pr_cmds.cpp +++ b/rehlds/engine/pr_cmds.cpp @@ -2099,9 +2099,10 @@ void EXT_FUNC PF_MessageBegin_I(int msg_dest, int msg_type, const float *pOrigin gMsgOrigin[1] = pOrigin[1]; gMsgOrigin[2] = pOrigin[2]; } - +#ifndef REHLDS_FIXES //No idea why is it called here - //Host_IsSinglePlayerGame(); + Host_IsSinglePlayerGame(); +#endif } gMsgBuffer.flags = SIZEBUF_ALLOW_OVERFLOW; @@ -2523,10 +2524,12 @@ const char* EXT_FUNC PF_GetPlayerAuthId(edict_t *e) Q_strcpy(szAuthID[count], "BOT"); } // AUTH_IDTYPE_LOCAL is handled inside SV_GetIDString(), no need to do it here -// else if (cl->network_userid.idtype == AUTH_IDTYPE_LOCAL) -// { -// Q_strcpy(szAuthID[count], "HLTV"); -// } +#ifndef REHLDS_FIXES + else if (cl->network_userid.idtype == AUTH_IDTYPE_LOCAL) + { + Q_strcpy(szAuthID[count], "HLTV"); + } +#endif else { Q_snprintf(szAuthID[count], sizeof(szAuthID[count]) - 1, "%s", SV_GetClientIDString(cl));