summaryrefslogtreecommitdiffstats
path: root/src/renderer/Renderer.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-11 08:36:58 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-11 08:36:58 +0200
commit2c79080e1b16cb794b33e24508c11ab4fc259b48 (patch)
tree9f602753c501bd1524179753beeb52771f43e924 /src/renderer/Renderer.cpp
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
parentMerge branch 'master' into miami (diff)
downloadre3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.gz
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.bz2
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.lz
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.xz
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.tar.zst
re3-2c79080e1b16cb794b33e24508c11ab4fc259b48.zip
Diffstat (limited to 'src/renderer/Renderer.cpp')
-rw-r--r--src/renderer/Renderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer/Renderer.cpp b/src/renderer/Renderer.cpp
index 8e460208..28177cca 100644
--- a/src/renderer/Renderer.cpp
+++ b/src/renderer/Renderer.cpp
@@ -141,7 +141,7 @@ CRenderer::RenderOneRoad(CEntity *e)
if(gbDontRenderBuildings)
return;
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
{
@@ -164,7 +164,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