engine: netchan: fixed wrong compressed file size calculation

This commit is contained in:
SNMetamorph 2022-12-09 17:28:23 +04:00 committed by Alibek Omarov
parent 9fa4de6ee8
commit dbe9309475
1 changed files with 5 additions and 1 deletions

View File

@ -978,8 +978,12 @@ int Netchan_CreateFileFragments( netchan_t *chan, const char *filename )
if( compressedFileTime >= fileTime )
{
// if compressed file already created and newer than source
if( FS_FileSize( compressedfilename, false ) != -1 )
fs_offset_t compressedSize = FS_FileSize( compressedfilename, false );
if( compressedSize != -1 )
{
bCompressed = true;
filesize = compressedSize;
}
}
else
{