summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-08-08 17:14:01 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-08-08 17:14:01 +0200
commit1a7270190352d23bc7c8a9ea1952b1cf606ad37b (patch)
tree4694ba743b93b906b0d096d3953701e6105039c2 /src/peds
parentbuild fix (diff)
downloadre3-1a7270190352d23bc7c8a9ea1952b1cf606ad37b.tar
re3-1a7270190352d23bc7c8a9ea1952b1cf606ad37b.tar.gz
re3-1a7270190352d23bc7c8a9ea1952b1cf606ad37b.tar.bz2
re3-1a7270190352d23bc7c8a9ea1952b1cf606ad37b.tar.lz
re3-1a7270190352d23bc7c8a9ea1952b1cf606ad37b.tar.xz
re3-1a7270190352d23bc7c8a9ea1952b1cf606ad37b.tar.zst
re3-1a7270190352d23bc7c8a9ea1952b1cf606ad37b.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index be39f26e..4e1c3c6d 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -2788,12 +2788,14 @@ CPed::SetModelIndex(uint32 mi)
// This is a mistake by R*, velocity is CVector, whereas m_vecAnimMoveDelta is CVector2D.
(*RPANIMBLENDCLUMPDATA(m_rwObject))->velocity = (CVector*) &m_vecAnimMoveDelta;
+#ifdef PED_SKIN
if(modelInfo->GetHitColModel() == nil)
modelInfo->CreateHitColModelSkinned(GetClump());
- UpdateRpHAnim();
-
-#ifndef LIBRW
+ if (IsClumpSkinned(GetClump())) // condition isn't there in VC
+ UpdateRpHAnim();
+#endif
+#if 1
if (!m_pRTShadow)
{
m_pRTShadow = new CCutsceneShadow;