summaryrefslogtreecommitdiffstats
path: root/src/renderer
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-11 07:35:01 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-11 07:35:01 +0200
commitd7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8 (patch)
tree6e30f138b2ca1cdc015a30205063b8c18cbc8cb0 /src/renderer
parentAdd sprite to the waypoint marker (diff)
downloadre3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.gz
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.bz2
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.lz
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.xz
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.zst
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.zip
Diffstat (limited to 'src/renderer')
-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 49e8e611..96e3a329 100644
--- a/src/renderer/Renderer.cpp
+++ b/src/renderer/Renderer.cpp
@@ -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