little emergecy fix for shadows with librw

This commit is contained in:
aap 2020-08-07 13:13:04 +02:00
parent 7d8ffa9ebd
commit 658f94f155
2 changed files with 4 additions and 6 deletions

View File

@ -2788,14 +2788,12 @@ CPed::SetModelIndex(uint32 mi)
// This is a mistake by R*, velocity is CVector, whereas m_vecAnimMoveDelta is CVector2D. // This is a mistake by R*, velocity is CVector, whereas m_vecAnimMoveDelta is CVector2D.
(*RPANIMBLENDCLUMPDATA(m_rwObject))->velocity = (CVector*) &m_vecAnimMoveDelta; (*RPANIMBLENDCLUMPDATA(m_rwObject))->velocity = (CVector*) &m_vecAnimMoveDelta;
#ifdef PED_SKIN
if(modelInfo->GetHitColModel() == nil) if(modelInfo->GetHitColModel() == nil)
modelInfo->CreateHitColModelSkinned(GetClump()); modelInfo->CreateHitColModelSkinned(GetClump());
if (IsClumpSkinned(GetClump())) // condition isn't there in VC
UpdateRpHAnim(); UpdateRpHAnim();
#endif
#if 1 #ifndef LIBRW
if (!m_pRTShadow) if (!m_pRTShadow)
{ {
m_pRTShadow = new CCutsceneShadow; m_pRTShadow = new CCutsceneShadow;

View File

@ -853,7 +853,7 @@ CShadows::StoreShadowForPed(CPed *pPed, float fDisplacementX, float fDisplacemen
{ {
if ( CTimeCycle::GetShadowStrength() != 0 ) if ( CTimeCycle::GetShadowStrength() != 0 )
{ {
#if 1 #ifndef LIBRW
CCutsceneShadow *pShadow = pPed->m_pRTShadow; CCutsceneShadow *pShadow = pPed->m_pRTShadow;
if (pShadow) if (pShadow)