summaryrefslogtreecommitdiff
path: root/src/entities/Physical.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-04-15 08:03:53 +0300
committerFire-Head <Fire-Head@users.noreply.github.com>2020-04-15 08:03:53 +0300
commitdaed13485ef47d9c8992e53e1a976fba237fca50 (patch)
treef8116c26ac5f95a77375d67daffddbeaa19177e0 /src/entities/Physical.cpp
parent6473778c47efa1e8c1e2d8eea405de98f378cd69 (diff)
CWeapon done, ps2 cheats fix
Diffstat (limited to 'src/entities/Physical.cpp')
-rw-r--r--src/entities/Physical.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp
index faa8a484..bd13ff37 100644
--- a/src/entities/Physical.cpp
+++ b/src/entities/Physical.cpp
@@ -612,7 +612,7 @@ CPhysical::ApplyCollision(CPhysical *B, CColPoint &colpoint, float &impulseA, fl
if(model == MI_FIRE_HYDRANT && !Bobj->bHasBeenDamaged){
CParticleObject::AddObject(POBJECT_FIRE_HYDRANT, B->GetPosition() - CVector(0.0f, 0.0f, 0.5f), true);
Bobj->bHasBeenDamaged = true;
- }else if(B->IsObject() && model != MI_EXPLODINGBARREL && model != MI_PETROLPUMP)
+ }else if(B->IsObject() && !IsExplosiveThingModel(model))
Bobj->bHasBeenDamaged = true;
}else{
if(IsGlass(B->GetModelIndex()))