mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +00:00
Changed the demofile slot finder to use FS_FileExists instead of FS_ReadFile to find a free filename.
This commit is contained in:
parent
9fd1a47819
commit
3afbcc9854
1 changed files with 1 additions and 3 deletions
|
@ -298,12 +298,10 @@ void CL_Record_f( void ) {
|
|||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// open the demo file
|
||||
|
||||
|
|
Loading…
Reference in a new issue