summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-05-28 08:39:36 +0200
committeraap <aap@papnet.eu>2019-05-28 08:39:36 +0200
commitcb8993f15e06fe2ea94decce77892c28b1b23d64 (patch)
tree617b6745f6ff26ab4551a4d192fab082ea17f46f /src/render
parentimplemented CFileMgr (barf) (diff)
downloadre3-cb8993f15e06fe2ea94decce77892c28b1b23d64.tar
re3-cb8993f15e06fe2ea94decce77892c28b1b23d64.tar.gz
re3-cb8993f15e06fe2ea94decce77892c28b1b23d64.tar.bz2
re3-cb8993f15e06fe2ea94decce77892c28b1b23d64.tar.lz
re3-cb8993f15e06fe2ea94decce77892c28b1b23d64.tar.xz
re3-cb8993f15e06fe2ea94decce77892c28b1b23d64.tar.zst
re3-cb8993f15e06fe2ea94decce77892c28b1b23d64.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Renderer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 5dc5959a..f8703c01 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -93,7 +93,7 @@ CRenderer::RenderOneNonRoad(CEntity *e)
return;
#endif
ped = (CPed*)e;
- if(ped->m_nPedState == PED_PASSENGER)
+ if(ped->m_nPedState == PED_DRIVING)
return;
}
#ifndef MASTER
@@ -111,10 +111,10 @@ CRenderer::RenderOneNonRoad(CEntity *e)
// Render Peds in vehicle before vehicle itself
if(e->IsVehicle()){
veh = (CVehicle*)e;
- if(veh->pDriver && veh->pDriver->m_nPedState == PED_PASSENGER)
+ if(veh->pDriver && veh->pDriver->m_nPedState == PED_DRIVING)
veh->pDriver->Render();
for(i = 0; i < 8; i++)
- if(veh->pPassengers[i] && veh->pPassengers[i]->m_nPedState == PED_PASSENGER)
+ if(veh->pPassengers[i] && veh->pPassengers[i]->m_nPedState == PED_DRIVING)
veh->pPassengers[i]->Render();
}
e->Render();