summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Plane.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-20 19:31:59 +0200
committeraap <aap@papnet.eu>2020-07-20 19:50:20 +0200
commit2612c9f12cf0e787e5b3bac955a5488b101111e8 (patch)
tree3c8e0c59894df98cba51f86b2169a35b10619f0f /src/vehicles/Plane.cpp
parentCPlane done (diff)
downloadre3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.gz
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.bz2
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.lz
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.xz
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.zst
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Plane.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vehicles/Plane.cpp b/src/vehicles/Plane.cpp
index 9ea4a289..a3754854 100644
--- a/src/vehicles/Plane.cpp
+++ b/src/vehicles/Plane.cpp
@@ -126,9 +126,10 @@ CPlane::ProcessControl(void)
if(CReplay::IsPlayingBack())
return;
- if(GetModelIndex() == MI_AIRTRAIN)
- CPlaneTrails::RegisterPoint(GetPosition(), m_nPlaneId);
- else if(GetModelIndex() == MI_DEADDODO)
+ if(GetModelIndex() == MI_AIRTRAIN){
+ if(GetPosition().z > 100.0f)
+ CPlaneTrails::RegisterPoint(GetPosition(), m_nPlaneId);
+ }else if(GetModelIndex() == MI_DEADDODO)
CPlaneBanners::RegisterPoint(GetPosition(), m_nPlaneId);
// Explosion
@@ -742,6 +743,7 @@ CPlane::InitPlanes(void)
CStreaming::RequestModel(MI_AIRTRAIN, 0);
CStreaming::LoadAllRequestedModels(false);
+ // NB: 3 hardcoded also in CPlaneTrails
for(i = 0; i < 3; i++){
CPlane *plane = new CPlane(MI_AIRTRAIN, PERMANENT_VEHICLE);
plane->GetMatrix().SetTranslate(0.0f, 0.0f, 0.0f);