summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-15 16:17:18 +0200
committeraap <aap@papnet.eu>2020-04-15 16:17:18 +0200
commiteccc4a3a5b45253ad8a6bdacbfccb8a15299d334 (patch)
treea80663c907da42635577dc1c146f50f87e7372dd /src
parentfixed clouds and sprites (diff)
downloadre3-eccc4a3a5b45253ad8a6bdacbfccb8a15299d334.tar
re3-eccc4a3a5b45253ad8a6bdacbfccb8a15299d334.tar.gz
re3-eccc4a3a5b45253ad8a6bdacbfccb8a15299d334.tar.bz2
re3-eccc4a3a5b45253ad8a6bdacbfccb8a15299d334.tar.lz
re3-eccc4a3a5b45253ad8a6bdacbfccb8a15299d334.tar.xz
re3-eccc4a3a5b45253ad8a6bdacbfccb8a15299d334.tar.zst
re3-eccc4a3a5b45253ad8a6bdacbfccb8a15299d334.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Heli.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vehicles/Heli.cpp b/src/vehicles/Heli.cpp
index 3dc1deeb..c4cdcb02 100644
--- a/src/vehicles/Heli.cpp
+++ b/src/vehicles/Heli.cpp
@@ -78,6 +78,9 @@ CHeli::CHeli(int32 id, uint8 CreatedBy)
m_bTestRight = true;
m_fTargetOffset = 0.0f;
m_fSearchLightX = m_fSearchLightY = 0.0f;
+
+ // BUG: not in game but gets initialized to CDCDCDCD in debug
+ m_nLastShotTime = 0;
}
void
@@ -590,7 +593,12 @@ CHeli::PreRender(void)
break;
}
RwRGBA col = { r, g, b, 32 };
+#ifdef FIX_BUGS
+ pos.z = m_fHeliDustZ[frm];
+#else
+ // What the hell is the point of this?
pos.z = m_fHeliDustZ[(i - (i&3))/4]; // advance every 4 iterations, why not just /4?
+#endif
if(pos.z > -200.0f && GetPosition().z - pos.z < 20.0f)
CParticle::AddParticle(PARTICLE_HELI_DUST, pos, dir, nil, 0.0f, col);
i++;