summaryrefslogtreecommitdiffstats
path: root/src/core/World.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-08-17 21:03:57 +0200
committereray orçunus <erayorcunus@gmail.com>2019-08-17 21:21:10 +0200
commit39223901bf459e0548605f64ae030e89fedb9949 (patch)
treeccd55f366d0b2a42b6746bf89017cb05139570e9 /src/core/World.cpp
parentMerge pull request #193 from erorcun/erorcun (diff)
downloadre3-39223901bf459e0548605f64ae030e89fedb9949.tar
re3-39223901bf459e0548605f64ae030e89fedb9949.tar.gz
re3-39223901bf459e0548605f64ae030e89fedb9949.tar.bz2
re3-39223901bf459e0548605f64ae030e89fedb9949.tar.lz
re3-39223901bf459e0548605f64ae030e89fedb9949.tar.xz
re3-39223901bf459e0548605f64ae030e89fedb9949.tar.zst
re3-39223901bf459e0548605f64ae030e89fedb9949.zip
Diffstat (limited to 'src/core/World.cpp')
-rw-r--r--src/core/World.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp
index 9c3aafcf..150e87d5 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -294,10 +294,14 @@ CWorld::ProcessLineOfSightSectorList(CPtrList &list, const CColLine &line, CColP
if(e->IsPed()){
if(e->bUsesCollision ||
deadPeds && ((CPed*)e)->m_nPedState == PED_DEAD){
- if(((CPed*)e)->UseGroundColModel())
+ if (((CPed*)e)->UseGroundColModel())
colmodel = &CTempColModels::ms_colModelPedGroundHit;
else
+#ifdef ANIMATE_PED_COL_MODEL
+ colmodel = CPedModelInfo::AnimatePedColModel(((CPedModelInfo*)CModelInfo::GetModelInfo(e->GetModelIndex()))->GetHitColModel(), RpClumpGetFrame(e->GetClump()));
+#else
colmodel = ((CPedModelInfo*)CModelInfo::GetModelInfo(e->GetModelIndex()))->GetHitColModel();
+#endif
}else
colmodel = nil;
}else if(e->bUsesCollision)