mirror of
https://github.com/rehlds/rehlds.git
synced 2025-03-13 05:50:20 +03:00
Add a detailed print in SV_HandleClientMessage
This commit is contained in:
parent
63a037af60
commit
fedc99bb85
@ -1,4 +1,4 @@
|
||||
# Rehlds [/statusIcon)](http://teamcity.rehlds.org/viewType.html?buildTypeId=Rehlds_Publish&guest=1) [](http://teamcity.rehlds.org/guestAuth/downloadArtifacts.html?buildTypeId=Rehlds_Publish&buildId=lastSuccessful)
|
||||
# Rehlds [/statusIcon)](http://teamcity.rehlds.org/viewType.html?buildTypeId=Rehlds_Publish&guest=1) [](http://teamcity.rehlds.org/guestAuth/downloadArtifacts.html?buildTypeId=Rehlds_Publish&buildId=lastSuccessful)
|
||||
|
||||
Reverse-engineered (and bugfixed) HLDS
|
||||
|
||||
|
@ -171,7 +171,7 @@ int EXT_FUNC PF_modelindex(const char *pstr)
|
||||
|
||||
int EXT_FUNC ModelFrames(int modelIndex)
|
||||
{
|
||||
if (modelIndex <= 0 || modelIndex >= 512)
|
||||
if (modelIndex <= 0 || modelIndex >= MAX_MODELS)
|
||||
{
|
||||
Con_DPrintf("Bad sprite index!\n");
|
||||
return 1;
|
||||
@ -1990,7 +1990,7 @@ edict_t* EXT_FUNC PF_CreateFakeClient_I(const char *netname)
|
||||
Info_SetValueForKey(fakeclient->userinfo, "model", "gordon", MAX_INFO_STRING);
|
||||
Info_SetValueForKey(fakeclient->userinfo, "topcolor", "1", MAX_INFO_STRING);
|
||||
Info_SetValueForKey(fakeclient->userinfo, "bottomcolor", "1", MAX_INFO_STRING);
|
||||
fakeclient->sendinfo = 1;
|
||||
fakeclient->sendinfo = TRUE;
|
||||
SV_ExtractFromUserinfo(fakeclient);
|
||||
|
||||
fakeclient->network_userid.m_SteamID = ISteamGameServer_CreateUnauthenticatedUserConnection();
|
||||
|
@ -636,5 +636,6 @@ void* EXT_FUNC GetModelPtr(edict_t *pEdict)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
return Mod_Extradata(g_psv.models[pEdict->v.modelindex]);
|
||||
|
||||
return Mod_Extradata(Mod_Handle(pEdict->v.modelindex));
|
||||
}
|
||||
|
@ -1716,6 +1716,14 @@ void EXT_FUNC SV_HandleClientMessage_api(IGameClient* client, int8 opcode) {
|
||||
void(*func)(client_t *) = sv_clcfuncs[opcode].pfnParse;
|
||||
if (func)
|
||||
func(cl);
|
||||
|
||||
#ifdef REHLDS_FIXES
|
||||
if (msg_badread)
|
||||
{
|
||||
Con_Printf("SV_ReadClientMessage: badread on %s, opcode %s\n", host_client->name, sv_clcfuncs[opcode].pszname);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void SV_ExecuteClientMessage(client_t *cl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user