mirror of
https://github.com/halpz/re3.git
synced 2025-07-16 15:28:11 +00:00
some SilentPatch fixes
# Conflicts: # src/core/Camera.cpp # src/weapons/Weapon.cpp
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -1151,6 +1151,10 @@ int CRadar::SetCoordBlip(eBlipType type, CVector pos, int32 color, eBlipDisplay
|
||||
if (!ms_RadarTrace[nextBlip].m_bInUse)
|
||||
break;
|
||||
}
|
||||
#ifdef FIX_BUGS
|
||||
if (nextBlip == NUMRADARBLIPS)
|
||||
return -1;
|
||||
#endif
|
||||
ms_RadarTrace[nextBlip].m_eBlipType = type;
|
||||
ms_RadarTrace[nextBlip].m_nColor = color;
|
||||
ms_RadarTrace[nextBlip].m_bDim = true;
|
||||
@ -1182,6 +1186,10 @@ int CRadar::SetEntityBlip(eBlipType type, int32 handle, int32 color, eBlipDispla
|
||||
if (!ms_RadarTrace[nextBlip].m_bInUse)
|
||||
break;
|
||||
}
|
||||
#ifdef FIX_BUGS
|
||||
if (nextBlip == NUMRADARBLIPS)
|
||||
return -1;
|
||||
#endif
|
||||
ms_RadarTrace[nextBlip].m_eBlipType = type;
|
||||
ms_RadarTrace[nextBlip].m_nColor = color;
|
||||
ms_RadarTrace[nextBlip].m_bDim = true;
|
||||
@ -1526,6 +1534,10 @@ CRadar::ToggleTargetMarker(float x, float y)
|
||||
if (!ms_RadarTrace[nextBlip].m_bInUse)
|
||||
break;
|
||||
}
|
||||
#ifdef FIX_BUGS
|
||||
if (nextBlip == NUMRADARBLIPS)
|
||||
return;
|
||||
#endif
|
||||
ms_RadarTrace[nextBlip].m_eBlipType = BLIP_COORD;
|
||||
ms_RadarTrace[nextBlip].m_nColor = 0x333333FF;
|
||||
ms_RadarTrace[nextBlip].m_bDim = 1;
|
||||
|
Reference in New Issue
Block a user