Make "no such (old)frame" warnings developer-only

those "problems" don't really matter, so don't spam the console with
it (unless you've enabled developer messages).

"Fixes" https://github.com/yquake2/xatrix/issues/7
This commit is contained in:
Daniel Gibson 2015-12-12 20:17:40 +01:00
parent 3e5ac1c15a
commit ca4bab172e

View file

@ -390,14 +390,14 @@ R_CullAliasModel(vec3_t bbox[8], entity_t *e)
if ((e->frame >= paliashdr->num_frames) || (e->frame < 0))
{
VID_Printf(PRINT_ALL, "R_CullAliasModel %s: no such frame %d\n",
VID_Printf(PRINT_DEVELOPER, "R_CullAliasModel %s: no such frame %d\n",
currentmodel->name, e->frame);
e->frame = 0;
}
if ((e->oldframe >= paliashdr->num_frames) || (e->oldframe < 0))
{
VID_Printf(PRINT_ALL, "R_CullAliasModel %s: no such oldframe %d\n",
VID_Printf(PRINT_DEVELOPER, "R_CullAliasModel %s: no such oldframe %d\n",
currentmodel->name, e->oldframe);
e->oldframe = 0;
}
@ -775,7 +775,7 @@ R_DrawAliasModel(entity_t *e)
if ((currententity->frame >= paliashdr->num_frames) ||
(currententity->frame < 0))
{
VID_Printf(PRINT_ALL, "R_DrawAliasModel %s: no such frame %d\n",
VID_Printf(PRINT_DEVELOPER, "R_DrawAliasModel %s: no such frame %d\n",
currentmodel->name, currententity->frame);
currententity->frame = 0;
currententity->oldframe = 0;
@ -784,7 +784,7 @@ R_DrawAliasModel(entity_t *e)
if ((currententity->oldframe >= paliashdr->num_frames) ||
(currententity->oldframe < 0))
{
VID_Printf(PRINT_ALL, "R_DrawAliasModel %s: no such oldframe %d\n",
VID_Printf(PRINT_DEVELOPER, "R_DrawAliasModel %s: no such oldframe %d\n",
currentmodel->name, currententity->oldframe);
currententity->frame = 0;
currententity->oldframe = 0;