oops, didn't notice the lack of {}s

This commit is contained in:
Bill Currie 2003-03-03 21:46:41 +00:00
parent c52ce7f202
commit da3cac2b6a
2 changed files with 3 additions and 2 deletions

View file

@ -629,7 +629,7 @@ SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg, qboolean recorder)
max_packet_entities = MAX_DEMO_PACKET_ENTITIES;
for (i=0, cl = svs.clients; i<MAX_CLIENTS; i++, cl++) {
if (cl->state != cs_spawned)
if (cl->state != cs_spawned && cl->state != cs_server)
continue;
if (cl->spectator)

View file

@ -1086,12 +1086,13 @@ PF_WriteBytes (progs_t *pr)
if (sv.demorecording)
MSG_WriteByte (&demo.dbuf->sz, p);
}
} else
} else {
sizebuf_t *msg = WriteDest (pr);
for (i = 1; i < pr->pr_argc; i++) {
p = G_FLOAT (pr, OFS_PARM0 + i * (OFS_PARM1 - OFS_PARM0));
MSG_WriteByte (msg, p);
}
}
}
void