mirror of
https://github.com/halpz/re3.git
synced 2025-07-26 06:22:48 +00:00
Fix a bunch of CModelInfo::GetModelInfo->GetColModel calls
This commit is contained in:
@ -134,7 +134,7 @@ CRenderer::RenderOneRoad(CEntity *e)
|
||||
#endif
|
||||
#ifndef MASTER
|
||||
if(gbShowCollisionPolys || gbShowCollisionPolysReflections || gbShowCollisionPolysNoShadows)
|
||||
CCollision::DrawColModel_Coloured(e->GetMatrix(), *CModelInfo::GetModelInfo(e->GetModelIndex())->GetColModel(), e->GetModelIndex());
|
||||
CCollision::DrawColModel_Coloured(e->GetMatrix(), *CModelInfo::GetColModel(e->GetModelIndex()), e->GetModelIndex());
|
||||
else
|
||||
#endif
|
||||
{
|
||||
@ -157,7 +157,7 @@ CRenderer::RenderOneNonRoad(CEntity *e)
|
||||
#ifndef MASTER
|
||||
if(gbShowCollisionPolys || gbShowCollisionPolysReflections || gbShowCollisionPolysNoShadows){
|
||||
if(!e->IsVehicle()){
|
||||
CCollision::DrawColModel_Coloured(e->GetMatrix(), *CModelInfo::GetModelInfo(e->GetModelIndex())->GetColModel(), e->GetModelIndex());
|
||||
CCollision::DrawColModel_Coloured(e->GetMatrix(), *CModelInfo::GetColModel(e->GetModelIndex()), e->GetModelIndex());
|
||||
return;
|
||||
}
|
||||
}else
|
||||
|
Reference in New Issue
Block a user