mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 07:59:00 +00:00
some fixes
This commit is contained in:
parent
9b162554ca
commit
9d4d83db0d
4 changed files with 16 additions and 0 deletions
|
@ -1449,7 +1449,11 @@ cSampleManager::IsPedCommentLoaded(uint32 nComment)
|
||||||
|
|
||||||
for ( int32 i = 0; i < _TODOCONST(3); i++ )
|
for ( int32 i = 0; i < _TODOCONST(3); i++ )
|
||||||
{
|
{
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
slot = (nCurrentPedSlot - i - 1) % ARRAY_SIZE(nPedSlotSfx);
|
||||||
|
#else
|
||||||
slot = nCurrentPedSlot - i - 1;
|
slot = nCurrentPedSlot - i - 1;
|
||||||
|
#endif
|
||||||
if ( nComment == nPedSlotSfx[slot] )
|
if ( nComment == nPedSlotSfx[slot] )
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -779,7 +779,11 @@ cSampleManager::IsPedCommentLoaded(uint32 nComment)
|
||||||
|
|
||||||
for ( int32 i = 0; i < _TODOCONST(3); i++ )
|
for ( int32 i = 0; i < _TODOCONST(3); i++ )
|
||||||
{
|
{
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
slot = (nCurrentPedSlot - i - 1) % ARRAY_SIZE(nPedSlotSfx);
|
||||||
|
#else
|
||||||
slot = nCurrentPedSlot - i - 1;
|
slot = nCurrentPedSlot - i - 1;
|
||||||
|
#endif
|
||||||
if ( nComment == nPedSlotSfx[slot] )
|
if ( nComment == nPedSlotSfx[slot] )
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16166,7 +16166,11 @@ CPed::SeekCar(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dest.x == 0.0f && dest.y == 0.0f) {
|
if (dest.x == 0.0f && dest.y == 0.0f) {
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
if ((!IsPlayer() && CharCreatedBy != MISSION_CHAR) || vehToSeek->VehicleCreatedBy != MISSION_VEHICLE || vehToSeek->pDriver || !vehToSeek->CanPedOpenLocks(this)) {
|
||||||
|
#else
|
||||||
if ((!IsPlayer() && CharCreatedBy != MISSION_CHAR) || vehToSeek->VehicleCreatedBy != MISSION_VEHICLE || vehToSeek->pDriver) {
|
if ((!IsPlayer() && CharCreatedBy != MISSION_CHAR) || vehToSeek->VehicleCreatedBy != MISSION_VEHICLE || vehToSeek->pDriver) {
|
||||||
|
#endif
|
||||||
RestorePreviousState();
|
RestorePreviousState();
|
||||||
if (IsPlayer()) {
|
if (IsPlayer()) {
|
||||||
ClearObjective();
|
ClearObjective();
|
||||||
|
|
|
@ -184,7 +184,11 @@ CBoat::ProcessControl(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
float collisionDamage = pHandling->fCollisionDamageMultiplier * m_fDamageImpulse;
|
float collisionDamage = pHandling->fCollisionDamageMultiplier * m_fDamageImpulse;
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
if (collisionDamage > 25.0f && GetStatus() != STATUS_WRECKED && m_fHealth >= 150.0f && !bCollisionProof) {
|
||||||
|
#else
|
||||||
if(collisionDamage > 25.0f && GetStatus() != STATUS_WRECKED && m_fHealth >= 150.0f){
|
if(collisionDamage > 25.0f && GetStatus() != STATUS_WRECKED && m_fHealth >= 150.0f){
|
||||||
|
#endif
|
||||||
float prevHealth = m_fHealth;
|
float prevHealth = m_fHealth;
|
||||||
if(this == FindPlayerVehicle()){
|
if(this == FindPlayerVehicle()){
|
||||||
if(bTakeLessDamage)
|
if(bTakeLessDamage)
|
||||||
|
|
Loading…
Reference in a new issue