Fix wrong demo filename when all 9999 demo*.dm_64 file slots have been written.

This commit is contained in:
Thilo Schulz 2006-07-30 14:11:51 +00:00
parent c6bf30ea7f
commit 9fd1a47819

View file

@ -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;