mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
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:
parent
3e5ac1c15a
commit
ca4bab172e
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue