r823 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jul 30 10:42:15 EDT 2006


Author: thilo
Date: 2006-07-30 10:42:15 -0400 (Sun, 30 Jul 2006)
New Revision: 823

Modified:
   trunk/code/client/cl_main.c
Log:
Changed the demofile slot finder to use FS_FileExists instead of FS_ReadFile to find a free filename.


Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c	2006-07-30 14:11:51 UTC (rev 822)
+++ trunk/code/client/cl_main.c	2006-07-30 14:42:15 UTC (rev 823)
@@ -298,10 +298,8 @@
 			CL_DemoFilename( number, demoName );
 			Com_sprintf (name, sizeof(name), "demos/%s.dm_%d", demoName, PROTOCOL_VERSION );
 
-			len = FS_ReadFile( name, NULL );
-			if ( len <= 0 ) {
+			if (!FS_FileExists(name))
 				break;	// file doesn't exist
-			}
 		}
 	}
 




More information about the quake3-commits mailing list