mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-21 19:51:18 +00:00
put in some debug info about precache overflows
This commit is contained in:
parent
6162fd8017
commit
72d8bd6af7
1 changed files with 3 additions and 1 deletions
|
@ -946,7 +946,7 @@ PF_precache_model (progs_t *pr)
|
|||
|
||||
if (sv.state != ss_loading)
|
||||
PR_RunError
|
||||
(pr, "PF_Precache_*: Precache can only be done in spawn functions");
|
||||
(pr, "PF_Precache_model: Precache can only be done in spawn functions");
|
||||
|
||||
s = G_STRING (pr, OFS_PARM0);
|
||||
G_INT (pr, OFS_RETURN) = G_INT (pr, OFS_PARM0);
|
||||
|
@ -955,11 +955,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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue