shithub: qk1

Download patch

ref: 67889c603188245b568d12d9fd0d1654805cc7c4
parent: 0e6e395d46aa6da4ba5c1413739f8c9d621fdf48
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sat Oct 14 12:14:19 EDT 2023

Con_DPrintf: print to stderr if "developer" cvar is > 1

--- a/console.c
+++ b/console.c
@@ -332,15 +332,18 @@
 {
 	va_list		argptr;
 	char		msg[MAXPRINTMSG];
+	int			n;
 
 	if (!developer.value)
 		return;			// don't confuse non-developers with techie stuff...
 
 	va_start (argptr,fmt);
-	vsprintf (msg,fmt,argptr);
+	n = vsprintf (msg,fmt,argptr);
 	va_end (argptr);
-	
+
 	Con_Printf ("%s", msg);
+	if(developer.value > 1)
+		write(2, msg, n);
 }
 
 /*