shithub: qk1

Download patch

ref: 1239323a2cfeb1b44db192c51155d70cd8aaf03b
parent: 61219b556ce4b630d41303634317867dd8bb1ed5
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Oct 10 21:07:29 EDT 2023

shut up a lot of spam

--- a/r_alias.c
+++ b/r_alias.c
@@ -92,7 +92,7 @@
 // TODO: don't repeat this check when drawing?
 	if ((frame >= pmdl->numframes) || (frame < 0))
 	{
-		fprint(2, "No such frame %d %s\n", frame, pmodel->name);
+		//fprint(2, "No such frame %d %s\n", frame, pmodel->name);
 		frame = 0;
 	}
 
@@ -544,7 +544,7 @@
 	skinnum = currententity->skinnum;
 	if ((skinnum >= pmdl->numskins) || (skinnum < 0))
 	{
-		fprint(2, "R_AliasSetupSkin: no such skin # %d\n", skinnum);
+		//fprint(2, "R_AliasSetupSkin: no such skin # %d\n", skinnum);
 		skinnum = 0;
 	}
 
@@ -634,7 +634,7 @@
 	frame = currententity->frame;
 	if ((frame >= pmdl->numframes) || (frame < 0))
 	{
-		fprint(2, "R_AliasSetupFrame: no such frame %d\n", frame);
+		//fprint(2, "R_AliasSetupFrame: no such frame %d\n", frame);
 		frame = 0;
 	}
 
--- a/r_main.c
+++ b/r_main.c
@@ -155,6 +155,12 @@
 	}	
 }
 
+static void
+fog(void)
+{
+	// FIXME - this was added early to shut up the spam
+}
+
 /*
 ===============
 R_Init
@@ -170,6 +176,7 @@
 	R_InitTurb ();
 
 	Cmd_AddCommand("pointfile", loadpoints);
+	Cmd_AddCommand("fog", fog);
 
 	Cvar_RegisterVariable (&r_draworder);
 	Cvar_RegisterVariable (&r_speeds);
--- a/r_sprite.c
+++ b/r_sprite.c
@@ -226,7 +226,7 @@
 
 	if ((frame >= psprite->numframes) || (frame < 0))
 	{
-		Con_Printf ("R_DrawSprite: no such frame %d\n", frame);
+		//Con_Printf ("R_DrawSprite: no such frame %d\n", frame);
 		frame = 0;
 	}