mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 10:50:58 +00:00
don't crash when there are too many entities for update messages. just ignore
the excess.
This commit is contained in:
parent
e3508a5c64
commit
0bb01f310f
2 changed files with 10 additions and 4 deletions
|
@ -488,7 +488,7 @@ void
|
|||
SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg)
|
||||
{
|
||||
byte *pvs;
|
||||
int e, i;
|
||||
int e, i, num_edicts;
|
||||
vec3_t org;
|
||||
client_frame_t *frame;
|
||||
edict_t *clent, *ent;
|
||||
|
@ -513,8 +513,10 @@ SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg)
|
|||
|
||||
numnails = 0;
|
||||
|
||||
num_edicts = min (sv.num_edicts, 512); //FIXME stupid protocol limit
|
||||
|
||||
for (e = MAX_CLIENTS + 1, ent = EDICT_NUM (&sv_pr_state, e);
|
||||
e < sv.num_edicts;
|
||||
e < num_edicts;
|
||||
e++, ent = NEXT_EDICT (&sv_pr_state, ent)) {
|
||||
if (ent->free)
|
||||
continue;
|
||||
|
|
|
@ -3,7 +3,12 @@
|
|||
#define NIT_TELEPORTER 131072 //CH Teleporter
|
||||
#define PC_ENGINEER_TF_ITEMS NIT_TESLA | NIT_SECURITY_CAMERA | NIT_TELEPORTER
|
||||
|
||||
void () eek;
|
||||
struct foo = {
|
||||
integer result;
|
||||
string buffer;
|
||||
};
|
||||
|
||||
void (foo bar) eek;
|
||||
float (float a, float b) boing;
|
||||
|
||||
float () main =
|
||||
|
@ -12,7 +17,6 @@ float () main =
|
|||
local integer handle;
|
||||
local string buffer;
|
||||
|
||||
traceon();
|
||||
messed_or = PC_ENGINEER_TF_ITEMS;
|
||||
handle = open ("main.qc", 0);
|
||||
if (handle == -1) {
|
||||
|
|
Loading…
Reference in a new issue