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

add comments

This commit is contained in:
Andrey 2015-05-06 01:56:48 +03:00
parent a4909aca6d
commit 49cbbeafb2
2 changed files with 4 additions and 2 deletions

View File

@ -505,9 +505,9 @@ void SV_DropClient(client_t *cl, qboolean crash, const char *fmt, ...)
#ifdef REHLDS_FIXES #ifdef REHLDS_FIXES
// prevent message reading after disconnect // prevent message reading after disconnect
if (cl == host_client ) if (cl == host_client)
msg_readcount = net_message.cursize; msg_readcount = net_message.cursize;
#endif // REHLDS_CHECKS #endif // REHLDS_FIXES
Netchan_Clear(&cl->netchan); Netchan_Clear(&cl->netchan);

View File

@ -273,11 +273,13 @@ qboolean Info_IsKeyImportant(const char *key)
if (!Q_strcmp(key, "cl_lc")) if (!Q_strcmp(key, "cl_lc"))
return true; return true;
#ifndef REHLDS_FIXES #ifndef REHLDS_FIXES
// keys starts from '*' already checked
if (!Q_strcmp(key, "*hltv")) if (!Q_strcmp(key, "*hltv"))
return true; return true;
if (!Q_strcmp(key, "*sid")) if (!Q_strcmp(key, "*sid"))
return true; return true;
#endif #endif
return false; return false;
} }