some SilentPatch fixes

# Conflicts:
#	src/core/Camera.cpp
#	src/weapons/Weapon.cpp
This commit is contained in:
shfil
2020-09-26 20:11:25 +02:00
committed by Sergeanur
parent f9dc00a458
commit 35d7591def
5 changed files with 39 additions and 2 deletions

View File

@@ -106,12 +106,14 @@ CdStreamInit(int32 numChannels)
GetDiskFreeSpace(nil, &SectorsPerCluster, &BytesPerSector, &NumberOfFreeClusters, &TotalNumberOfClusters);
_gdwCdStreamFlags = 0;
#ifndef FIX_BUGS // this just slows down streaming
if ( BytesPerSector <= CDSTREAM_SECTOR_SIZE )
{
_gdwCdStreamFlags |= FILE_FLAG_NO_BUFFERING;
debug("Using no buffered loading for streaming\n");
}
#endif
_gbCdStreamOverlapped = TRUE;