2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-02-27 05:51:10 +03:00

Add REHLDS_FIXES checks

This commit is contained in:
In-line 2017-04-25 18:38:20 +04:00 committed by GitHub
parent 7efc256c7c
commit 5f117f2c9e

View File

@ -2099,9 +2099,10 @@ void EXT_FUNC PF_MessageBegin_I(int msg_dest, int msg_type, const float *pOrigin
gMsgOrigin[1] = pOrigin[1]; gMsgOrigin[1] = pOrigin[1];
gMsgOrigin[2] = pOrigin[2]; gMsgOrigin[2] = pOrigin[2];
} }
#ifndef REHLDS_FIXES
//No idea why is it called here //No idea why is it called here
//Host_IsSinglePlayerGame(); Host_IsSinglePlayerGame();
#endif
} }
gMsgBuffer.flags = SIZEBUF_ALLOW_OVERFLOW; gMsgBuffer.flags = SIZEBUF_ALLOW_OVERFLOW;
@ -2523,10 +2524,12 @@ const char* EXT_FUNC PF_GetPlayerAuthId(edict_t *e)
Q_strcpy(szAuthID[count], "BOT"); Q_strcpy(szAuthID[count], "BOT");
} }
// AUTH_IDTYPE_LOCAL is handled inside SV_GetIDString(), no need to do it here // AUTH_IDTYPE_LOCAL is handled inside SV_GetIDString(), no need to do it here
// else if (cl->network_userid.idtype == AUTH_IDTYPE_LOCAL) #ifndef REHLDS_FIXES
// { else if (cl->network_userid.idtype == AUTH_IDTYPE_LOCAL)
// Q_strcpy(szAuthID[count], "HLTV"); {
// } Q_strcpy(szAuthID[count], "HLTV");
}
#endif
else else
{ {
Q_snprintf(szAuthID[count], sizeof(szAuthID[count]) - 1, "%s", SV_GetClientIDString(cl)); Q_snprintf(szAuthID[count], sizeof(szAuthID[count]) - 1, "%s", SV_GetClientIDString(cl));