mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-14 23:12:41 +00:00
protocol: configstring should checked to negative values
partial revert of 91103f90
This commit is contained in:
parent
dfd2cb3700
commit
4025b1aa46
1 changed files with 4 additions and 3 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
static int bitcounts[32]; /* just for protocol profiling */
|
||||
|
||||
static char *svc_strings[256] = {
|
||||
static const char *svc_strings[256] = {
|
||||
"svc_bad",
|
||||
|
||||
"svc_muzzleflash",
|
||||
|
@ -777,7 +777,7 @@ CL_FireEntityEvents(frame_t *frame)
|
|||
}
|
||||
|
||||
static void
|
||||
SHOWNET(char *s)
|
||||
SHOWNET(const char *s)
|
||||
{
|
||||
if (cl_shownet->value >= 2)
|
||||
{
|
||||
|
@ -1207,7 +1207,8 @@ CL_ParseClientinfo(int player)
|
|||
static void
|
||||
CL_ParseConfigString(void)
|
||||
{
|
||||
size_t i, length;
|
||||
size_t length;
|
||||
int i;
|
||||
char *s;
|
||||
char olds[MAX_QPATH];
|
||||
|
||||
|
|
Loading…
Reference in a new issue