From c2213f2366356f09c9f7955b268ea8ba19f9325c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 28 Feb 2001 23:35:20 +0000 Subject: [PATCH] must set the data field in ALL edicts, not just player edicts :) --- qw/source/sv_init.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qw/source/sv_init.c b/qw/source/sv_init.c index f5ecbb89d..1f67d8760 100644 --- a/qw/source/sv_init.c +++ b/qw/source/sv_init.c @@ -345,11 +345,16 @@ SV_SpawnServer (char *server) sv_pr_state.pr_edictareasize = sv_pr_state.pr_edict_size * MAX_EDICTS; sv.edicts = Hunk_AllocName (sv_pr_state.pr_edictareasize, "edicts"); + // init the data field of the edicts + for (i = 0; i < MAX_EDICTS; i++) { + ent = EDICT_NUM (&sv_pr_state, i); + ent->data = &baselines[i]; + } + // leave slots at start for clients only sv.num_edicts = MAX_CLIENTS + 1; for (i = 0; i < MAX_CLIENTS; i++) { ent = EDICT_NUM (&sv_pr_state, i + 1); - ent->data = &baselines[i]; svs.clients[i].edict = ent; //ZOID - make sure we update frags right svs.clients[i].old_frags = 0;