summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Plane.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicles/Plane.cpp')
-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);