2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-28 15:45:46 +03:00

Add REHLDS_FIXES check

This commit is contained in:
In-line 2017-04-25 18:16:43 +04:00
parent 2d19024b1e
commit 8848ef331d

View File

@ -2098,9 +2098,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;
@ -2521,11 +2522,13 @@ const char* EXT_FUNC PF_GetPlayerAuthId(edict_t *e)
{
Q_strcpy(szAuthID[count], "BOT");
}
#ifndef REHLDS_FIXES
// 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");
// }
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));