aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-07-30 14:11:51 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-07-30 14:11:51 +0000
commit3d1a42d2eb41431b0b2e71cb54450a4d5f253fbf (patch)
treeca4aa8b310a52da8f693d753651edc632a1013d5 /code
parent6c2f9b04f2b73296a77e4e70019674f6e2716117 (diff)
downloadioquake3-aero-3d1a42d2eb41431b0b2e71cb54450a4d5f253fbf.tar.gz
ioquake3-aero-3d1a42d2eb41431b0b2e71cb54450a4d5f253fbf.zip
Fix wrong demo filename when all 9999 demo*.dm_64 file slots have been written.
git-svn-id: svn://svn.icculus.org/quake3/trunk@822 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/client/cl_main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/code/client/cl_main.c b/code/client/cl_main.c
index a2b93b9..3fc24be 100644
--- a/code/client/cl_main.c
+++ b/code/client/cl_main.c
@@ -229,10 +229,8 @@ CL_DemoFilename
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;