mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 18:15:42 +00:00
some SilentPatch fixes
# Conflicts: # src/core/Camera.cpp # src/weapons/Weapon.cpp
This commit is contained in:
parent
f9dc00a458
commit
35d7591def
5 changed files with 39 additions and 2 deletions
|
@ -1819,7 +1819,13 @@ CVehicle* CStoredCar::RestoreCar()
|
|||
#ifdef FIX_BUGS
|
||||
if (pVehicle->IsCar())
|
||||
#endif
|
||||
{
|
||||
((CAutomobile*)pVehicle)->m_bombType = m_nCarBombType;
|
||||
#ifdef FIX_BUGS
|
||||
if (m_nCarBombType != CARBOMB_NONE)
|
||||
((CAutomobile*)pVehicle)->m_pBombRigger = FindPlayerPed();
|
||||
#endif
|
||||
}
|
||||
pVehicle->bHasBeenOwnedByPlayer = true;
|
||||
pVehicle->m_nDoorLock = CARLOCK_UNLOCKED;
|
||||
pVehicle->bBulletProof = m_bBulletproof;
|
||||
|
|
|
@ -107,11 +107,13 @@ CdStreamInit(int32 numChannels)
|
|||
|
||||
_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;
|
||||
|
|
|
@ -1099,8 +1099,11 @@ MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
if ( wParam == VK_SHIFT )
|
||||
_InputTranslateShiftKeyUpDown(&ks);
|
||||
|
||||
#ifdef FIX_BUGS
|
||||
break;
|
||||
#else
|
||||
return 0L;
|
||||
#endif
|
||||
}
|
||||
|
||||
case WM_KEYUP:
|
||||
|
@ -1113,7 +1116,11 @@ MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
if ( wParam == VK_SHIFT )
|
||||
_InputTranslateShiftKeyUpDown(&ks);
|
||||
|
||||
#ifdef FIX_BUGS
|
||||
break;
|
||||
#else
|
||||
return 0L;
|
||||
#endif
|
||||
}
|
||||
|
||||
case WM_SYSKEYDOWN:
|
||||
|
@ -1126,7 +1133,11 @@ MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
if ( wParam == VK_SHIFT )
|
||||
_InputTranslateShiftKeyUpDown(&ks);
|
||||
|
||||
#ifdef FIX_BUGS
|
||||
break;
|
||||
#else
|
||||
return 0L;
|
||||
#endif
|
||||
}
|
||||
|
||||
case WM_SYSKEYUP:
|
||||
|
@ -1139,7 +1150,11 @@ MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
if ( wParam == VK_SHIFT )
|
||||
_InputTranslateShiftKeyUpDown(&ks);
|
||||
|
||||
#ifdef FIX_BUGS
|
||||
break;
|
||||
#else
|
||||
return 0L;
|
||||
#endif
|
||||
}
|
||||
|
||||
case WM_ACTIVATEAPP:
|
||||
|
|
|
@ -48,8 +48,10 @@ CDamageManager::FuckCarCompletely(void)
|
|||
#endif
|
||||
}
|
||||
// Why set to no damage?
|
||||
#ifndef FIX_BUGS
|
||||
m_lightStatus = 0;
|
||||
m_panelStatus = 0;
|
||||
#endif
|
||||
SetEngineStatus(250);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue