mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-17 01:11:18 +00:00
couple of issues I spotted that might eventually lead to issues if they're not fixed now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4344 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
029b630ab7
commit
24040b9ef2
2 changed files with 2 additions and 8 deletions
|
@ -80,13 +80,7 @@ typedef struct edict_s
|
||||||
|
|
||||||
/*these are shared with csqc*/
|
/*these are shared with csqc*/
|
||||||
link_t area;
|
link_t area;
|
||||||
int num_leafs;
|
pvscache_t pvsinfo;
|
||||||
short leafnums[MAX_ENT_LEAFS];
|
|
||||||
#ifdef Q2BSPS
|
|
||||||
int areanum;
|
|
||||||
int areanum2;
|
|
||||||
int headnode;
|
|
||||||
#endif
|
|
||||||
#ifdef USEODE
|
#ifdef USEODE
|
||||||
entityode_t ode;
|
entityode_t ode;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -3471,7 +3471,7 @@ void SV_PTrack_f (void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (i < 0 || i >= MAX_CLIENTS || svs.clients[i].state != cs_spawned ||
|
if (i < 0 || i >= sv.allocated_client_slots || svs.clients[i].state != cs_spawned ||
|
||||||
svs.clients[i].spectator)
|
svs.clients[i].spectator)
|
||||||
{
|
{
|
||||||
SV_ClientTPrintf (host_client, PRINT_HIGH, STL_INVALIDTRACKCLIENT);
|
SV_ClientTPrintf (host_client, PRINT_HIGH, STL_INVALIDTRACKCLIENT);
|
||||||
|
|
Loading…
Reference in a new issue