misc fixes forwarded from 0.3

This commit is contained in:
Bill Currie 2001-09-11 06:04:10 +00:00
parent 75cb4c1c5a
commit 410783025e
3 changed files with 5 additions and 3 deletions

View file

@ -620,7 +620,7 @@ CL_Record_f (void)
MSG_WriteByte (&buf, svc_updateentertime);
MSG_WriteByte (&buf, i);
MSG_WriteFloat (&buf, player->entertime);
MSG_WriteFloat (&buf, realtime - player->entertime);
MSG_WriteByte (&buf, svc_updateuserinfo);
MSG_WriteByte (&buf, i);

View file

@ -696,7 +696,7 @@ PF_precache_model (progs_t *pr)
if (sv.state != ss_loading)
PR_RunError
(pr, "PF_Precache_*: Precache can only be done in spawn "
(pr, "PF_Precache_model: Precache can only be done in spawn "
"functions");
s = G_STRING (pr, OFS_PARM0);
@ -706,11 +706,13 @@ PF_precache_model (progs_t *pr)
for (i = 0; i < MAX_MODELS; i++) {
if (!sv.model_precache[i]) {
sv.model_precache[i] = s;
Con_DPrintf ("PF_precache_model: %3d %s\n", i, s);
return;
}
if (!strcmp (sv.model_precache[i], s))
return;
}
Con_DPrintf ("PF_precache_model: %s\n", s);
PR_RunError (pr, "PF_precache_model: overflow");
}

View file

@ -117,7 +117,7 @@ SV_New_f (void)
//NOTE: This doesn't go through ClientReliableWrite since it's before the user
//spawns. These functions are written to not overflow
if (host_client->num_backbuf) {
SV_Printf ("WARNING %s: [SV_New] Back buffered (%d0, clearing",
SV_Printf ("WARNING %s: [SV_New] Back buffered (%d0, clearing\n",
host_client->name, host_client->netchan.message.cursize);
host_client->num_backbuf = 0;
SZ_Clear (&host_client->netchan.message);