diff options
author | aap <aap@papnet.eu> | 2020-07-20 19:31:59 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-20 19:50:20 +0200 |
commit | 2612c9f12cf0e787e5b3bac955a5488b101111e8 (patch) | |
tree | 3c8e0c59894df98cba51f86b2169a35b10619f0f /src/vehicles | |
parent | CPlane done (diff) | |
download | re3-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.cpp | 8 |
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); |