diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/client/cl_main.c | 6 |
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; |