mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: netchan: fixed wrong compressed file size calculation
This commit is contained in:
parent
9fa4de6ee8
commit
dbe9309475
@ -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…
x
Reference in New Issue
Block a user