mirror of
https://github.com/halpz/re3.git
synced 2025-07-22 01:19:48 +00:00
Make CBaseModelInfo fields protected
This commit is contained in:
@ -12,7 +12,7 @@ CBuilding::ReplaceWithNewModel(int32 id)
|
||||
{
|
||||
DeleteRwObject();
|
||||
|
||||
if(CModelInfo::GetModelInfo(m_modelIndex)->m_refCount == 0)
|
||||
if (CModelInfo::GetModelInfo(m_modelIndex)->GetNumRefs() == 0)
|
||||
CStreaming::RemoveModel(m_modelIndex);
|
||||
m_modelIndex = id;
|
||||
|
||||
|
@ -452,7 +452,7 @@ CEntity::PreRender(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if(CModelInfo::GetModelInfo(GetModelIndex())->m_num2dEffects != 0)
|
||||
if (CModelInfo::GetModelInfo(GetModelIndex())->GetNum2dEffects() != 0)
|
||||
ProcessLightsForEntity();
|
||||
}
|
||||
|
||||
@ -611,7 +611,7 @@ CEntity::AddSteamsFromGround(CVector *unused)
|
||||
C2dEffect *effect;
|
||||
CVector pos;
|
||||
|
||||
n = CModelInfo::GetModelInfo(GetModelIndex())->m_num2dEffects;
|
||||
n = CModelInfo::GetModelInfo(GetModelIndex())->GetNum2dEffects();
|
||||
for(i = 0; i < n; i++){
|
||||
effect = CModelInfo::GetModelInfo(GetModelIndex())->Get2dEffect(i);
|
||||
if(effect->type != EFFECT_PARTICLE)
|
||||
@ -654,7 +654,7 @@ CEntity::ProcessLightsForEntity(void)
|
||||
flashTimer2 = 0;
|
||||
flashTimer3 = 0;
|
||||
|
||||
n = CModelInfo::GetModelInfo(GetModelIndex())->m_num2dEffects;
|
||||
n = CModelInfo::GetModelInfo(GetModelIndex())->GetNum2dEffects();
|
||||
for(i = 0; i < n; i++, flashTimer1 += 0x80, flashTimer2 += 0x100, flashTimer3 += 0x200){
|
||||
effect = CModelInfo::GetModelInfo(GetModelIndex())->Get2dEffect(i);
|
||||
|
||||
|
Reference in New Issue
Block a user