shithub: qk1

Download patch

ref: d0ff488eafb8de6e1624e932fd1233f3d6973226
parent: 5e956ae9355f38bafa811e97669f464ae2f8d3fe
author: Konstantinn Bonnet <[email protected]>
date: Sat Mar 14 21:15:32 EDT 2015

remove -nostdout, just redirect 1 and/or 2

--- a/README
+++ b/README
@@ -4,19 +4,18 @@
 		. mk install
 	- to install quake (shareware or registered):
 		. mkdir $home/lib/quake/id1
-		. cp /n/quakecd/id1/*.pak id1/
+		. cp /n/quakecd/id1/*.pak $home/lib/quake/id1
 	- to install an expansion or compatible mod (zB rogue):
 		. mkdir $home/lib/quake/rogue
 		. cp /n/quakecd/rogue/*.pak $home/lib/quake/rogue
-	- sound is glitchy with higher resolutions (see snd_9.c)
 	- cdaudio, networking: PORTME
 	- high resolutions work up to 4096x4096 (arbitrary limit in r_shared.h)
 		. by default, quake uses a 8MB heap, which will be insufficient for higher
-		resolutions → exits with a related error message (not a note)
+		  resolutions → exits with a related error message (not a note)
 			→ use [-mem MB], e.g.:
 			; quake -mem 16
-		. resolutions under around 328x160 don't work, possibly because
-		menu text isn't scaled down, or something
+		. resolutions under around 328x160 don't work, possibly because menu text
+		  isn't scaled down, or something
 	- mouse is grabbed using m_windowed cvar
 		. open console (~)
 		. type m_windowed 1 (can autocomplete w/ tab)
@@ -27,7 +26,6 @@
 some params useful for workarounds
 ----------------------------------
 	-nosound
-	-nostdout
 	-mem MB
 	(-noudp)
 
@@ -42,7 +40,7 @@
 	- *printf -> *print was (mostly) stupid
 	- removed some of the command line parameters
 		. -winsize, -width, -height: just set the window dimensions with rio/rc
-		. -condebug: can just redirect with rc to same effect
+		. -condebug, -nostdout: can just redirect with rc to same effect
 
 
 todo/issues
@@ -54,11 +52,10 @@
 	- compile with BAN_TEST -> net_dgrm build fails (struct sockaddr_in)
 	- sprites/particles not scaled correctly on high resolutions (also in quake2)
 	- m_windowed 1: can still look around in frozen world when paused
-	- m_windowed 1: mouse can still escape, causing glitchy mouse look
+	- m_windowed 1: mouse can still escape, mouse movement not very smooth
 	- net_9p.c
 	- cd_9.c,net_udp.c,net_dgrm.c: actuallyport
 	- manpages
-	- cleanse *_9.c from linux legacy
 	- fix potential fp exceptions in code rather than ignoring them?
 	- g '/\* FIXME'
 	- port quakeworld and utilities +/- merge common code and mkmany
--- a/sys_9.c
+++ b/sys_9.c
@@ -52,7 +52,6 @@
 	"      Quake is a trademark of Id Software, inc., (c)1996 Id Software, inc.\n"
 	"        All rights reserved. NIN logo is a registered trademark licensed\n"
 	"             to Nothing Interactive, Inc. All rights reserved.\n";
-int nostdout;
 
 
 void Sys_Printf (char *fmt, ...)
@@ -61,8 +60,6 @@
 	uchar *p;
 	va_list arg;
 
-	if(nostdout)
-		return;
 	va_start(arg, fmt);
 	vseprint(buf, buf+sizeof(buf), fmt, arg);
 	va_end(arg);
@@ -230,10 +227,7 @@
 
 	Host_Init(&parms);
 
-	if(COM_CheckParm("-nostdout"))
-		nostdout = 1;
-	else
-		print("(9)quake %4.2f\n", (float)VERSION);
+	print("(9)quake %4.2f\n", (float)VERSION);
 
 	oldtime = Sys_FloatTime() - 0.1;
 	for(;;){