mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-15 13:24:08 +00:00
Merge remote-tracking branch 'origin/master' into miami
# Conflicts: # src/render/Renderer.cpp
This commit is contained in:
commit
6ad66fb2d7
7 changed files with 25 additions and 24 deletions
|
@ -75,7 +75,7 @@ CWorld::Add(CEntity *ent)
|
|||
|
||||
if(ent->IsBuilding() || ent->IsDummy()) return;
|
||||
|
||||
if(!ent->bIsStatic) ((CPhysical *)ent)->AddToMovingList();
|
||||
if(!ent->IsStatic()) ((CPhysical *)ent)->AddToMovingList();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -90,7 +90,7 @@ CWorld::Remove(CEntity *ent)
|
|||
|
||||
if(ent->IsBuilding() || ent->IsDummy()) return;
|
||||
|
||||
if(!ent->bIsStatic) ((CPhysical *)ent)->RemoveFromMovingList();
|
||||
if(!ent->IsStatic()) ((CPhysical *)ent)->RemoveFromMovingList();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1953,7 +1953,7 @@ CWorld::Process(void)
|
|||
RemoveEntityInsteadOfProcessingIt(movingEnt);
|
||||
} else {
|
||||
movingEnt->ProcessControl();
|
||||
if(movingEnt->bIsStatic) { movingEnt->RemoveFromMovingList(); }
|
||||
if(movingEnt->IsStatic()) { movingEnt->RemoveFromMovingList(); }
|
||||
}
|
||||
}
|
||||
bForceProcessControl = true;
|
||||
|
@ -1964,7 +1964,7 @@ CWorld::Process(void)
|
|||
RemoveEntityInsteadOfProcessingIt(movingEnt);
|
||||
} else {
|
||||
movingEnt->ProcessControl();
|
||||
if(movingEnt->bIsStatic) { movingEnt->RemoveFromMovingList(); }
|
||||
if(movingEnt->IsStatic()) { movingEnt->RemoveFromMovingList(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2117,7 +2117,7 @@ CWorld::TriggerExplosionSectorList(CPtrList &list, const CVector &position, floa
|
|||
CObject *pObject = (CObject *)pEntity;
|
||||
CVehicle *pVehicle = (CVehicle *)pEntity;
|
||||
if(!pEntity->bExplosionProof && (!pEntity->IsPed() || !pPed->bInVehicle)) {
|
||||
if(pEntity->bIsStatic) {
|
||||
if(pEntity->IsStatic()) {
|
||||
if(pEntity->IsObject()) {
|
||||
if (fPower > pObject->m_fUprootLimit || IsFence(pObject->GetModelIndex())) {
|
||||
if (IsGlass(pObject->GetModelIndex())) {
|
||||
|
@ -2141,7 +2141,7 @@ CWorld::TriggerExplosionSectorList(CPtrList &list, const CVector &position, floa
|
|||
}
|
||||
}
|
||||
}
|
||||
if(pEntity->bIsStatic) {
|
||||
if(pEntity->IsStatic()) {
|
||||
float fDamageMultiplier =
|
||||
(fRadius - fMagnitude) * 2.0f / fRadius;
|
||||
float fDamage = 300.0f * Min(fDamageMultiplier, 1.0f);
|
||||
|
@ -2152,7 +2152,7 @@ CWorld::TriggerExplosionSectorList(CPtrList &list, const CVector &position, floa
|
|||
pEntity->AddToMovingList();
|
||||
}
|
||||
}
|
||||
if(!pEntity->bIsStatic) {
|
||||
if(!pEntity->IsStatic()) {
|
||||
float fDamageMultiplier = Min((fRadius - fMagnitude) * 2.0f / fRadius, 1.0f);
|
||||
CVector vecForceDir =
|
||||
vecDistance * (fPower * pEntity->m_fMass * 0.00071429f * fDamageMultiplier /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue