mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-18 16:09:16 +01:00
engine: fix extra zeros in %0
This commit is contained in:
parent
6a8cd7090a
commit
4a56dfcd00
@ -153,7 +153,7 @@ qboolean CL_ScreenshotGetName( int lastnum, char *filename )
|
||||
return false;
|
||||
}
|
||||
|
||||
Q_sprintf( filename, "scrshots/%s_shot%0004d.png", clgame.mapname, lastnum );
|
||||
Q_sprintf( filename, "scrshots/%s_shot%04d.png", clgame.mapname, lastnum );
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -172,7 +172,7 @@ qboolean CL_SnapshotGetName( int lastnum, char *filename )
|
||||
return false;
|
||||
}
|
||||
|
||||
Q_sprintf( filename, "../%s_%0004d.png", clgame.mapname, lastnum );
|
||||
Q_sprintf( filename, "../%s_%04d.png", clgame.mapname, lastnum );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -1311,7 +1311,7 @@ static void CL_DemoGetName( int lastnum, char *filename )
|
||||
return;
|
||||
}
|
||||
|
||||
Q_sprintf( filename, "demo%0004d", lastnum );
|
||||
Q_sprintf( filename, "demo%04d", lastnum );
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2090,7 +2090,7 @@ void SV_SaveGame( const char *pName )
|
||||
// scan for a free filename
|
||||
for( n = 0; n < 1000; n++ )
|
||||
{
|
||||
Q_snprintf( savename, sizeof( savename ), "save%003d", n );
|
||||
Q_snprintf( savename, sizeof( savename ), "save%03d", n );
|
||||
|
||||
if( !FS_FileExists( va( "%s%s.sav", DEFAULT_SAVE_DIRECTORY, savename ), true ))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user