diff options
author | aap <aap@papnet.eu> | 2020-06-02 15:26:11 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-06-02 15:26:11 +0200 |
commit | 06c761e9acbf33e5b2709c9c3ad3419269ec2e77 (patch) | |
tree | 24deb3ecbf386ed35d0b8e338e8a07b1c53b62ea /src/render | |
parent | initial CBike struct (diff) | |
download | re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.gz re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.bz2 re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.lz re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.xz re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.tar.zst re3-06c761e9acbf33e5b2709c9c3ad3419269ec2e77.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Renderer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index f2f55b92..98dce4ac 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -7,6 +7,7 @@ #include "Ped.h" #include "Vehicle.h" #include "Heli.h" +#include "Bike.h" #include "Object.h" #include "PathFind.h" #include "Collision.h" @@ -21,7 +22,7 @@ #include "Occlusion.h" #include "Renderer.h" -//--MIAMI: file almost done, just one bike flag left +//--MIAMI: file done bool gbShowCollisionPolys; bool gbShowCollisionLines; @@ -356,8 +357,7 @@ CRenderer::SetupEntityVisibility(CEntity *ent) if(mi->GetModelType() != MITYPE_SIMPLE && mi->GetModelType() != MITYPE_WEAPON){ if(FindPlayerVehicle() == ent && TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_1STPERSON && -//TODO(MIAMI): that bike flag - (!FindPlayerVehicle()->IsBike() || true)){ + !(FindPlayerVehicle()->IsBike() && ((CBike*)FindPlayerVehicle())->m_bike_flag80)){ // Player's vehicle in first person mode CVehicle *veh = (CVehicle*)ent; int model = veh->GetModelIndex(); |