Browse Source

engine: netchan: fixed wrong compressed file size calculation

pull/2/head
SNMetamorph 2 years ago committed by Alibek Omarov
parent
commit
dbe9309475
  1. 6
      engine/common/net_chan.c

6
engine/common/net_chan.c

@ -978,8 +978,12 @@ int Netchan_CreateFileFragments( netchan_t *chan, const char *filename ) @@ -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
{

Loading…
Cancel
Save