mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-06 00:54:09 +00:00
Fix a bunch of CModelInfo::GetModelInfo->GetColModel calls
This commit is contained in:
parent
0544beb00d
commit
d7a28c4d2b
9 changed files with 21 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue