r822 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jul 30 10:11:51 EDT 2006


Author: thilo
Date: 2006-07-30 10:11:51 -0400 (Sun, 30 Jul 2006)
New Revision: 822

Modified:
   trunk/code/client/cl_main.c
Log:
Fix wrong demo filename when all 9999 demo*.dm_64 file slots have been written.


Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c	2006-07-30 11:09:45 UTC (rev 821)
+++ trunk/code/client/cl_main.c	2006-07-30 14:11:51 UTC (rev 822)
@@ -229,10 +229,8 @@
 void CL_DemoFilename( int number, char *fileName ) {
 	int		a,b,c,d;
 
-	if ( number < 0 || number > 9999 ) {
-		Com_sprintf( fileName, MAX_OSPATH, "demo9999.tga" );
-		return;
-	}
+	if(number < 0 || number > 9999)
+		number = 9999;
 
 	a = number / 1000;
 	number -= a*1000;




More information about the quake3-commits mailing list