engine: netchan: fixed wrong compressed file size calculation
This commit is contained in:
parent
9fa4de6ee8
commit
dbe9309475
1 changed files with 5 additions and 1 deletions
|
@ -978,8 +978,12 @@ int Netchan_CreateFileFragments( netchan_t *chan, const char *filename )
|
||||||
if( compressedFileTime >= fileTime )
|
if( compressedFileTime >= fileTime )
|
||||||
{
|
{
|
||||||
// if compressed file already created and newer than source
|
// 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;
|
bCompressed = true;
|
||||||
|
filesize = compressedSize;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue