2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 13:44:56 +00:00

Minor flamethrower and babygoth fixes

This commit is contained in:
Jack Andersen
2019-06-30 20:14:42 -10:00
parent 003146f614
commit fd0bfc3acf
5 changed files with 14 additions and 14 deletions

View File

@@ -44,7 +44,7 @@ void CFlameWarp::ModifyParticles(std::vector<CParticle>& particles) {
if (result.IsValid()) {
float dist = result.GetPlane().pointToPlaneDist(particle.x4_pos);
if (dist <= 0.f) {
particle.x4_pos = -result.GetPlane().normal() * dist;
particle.x4_pos -= result.GetPlane().normal() * dist;
if (result.GetPlane().normal().dot(particle.x1c_vel) < 0.f) {
zeus::CVector3f prevStepPos = particle.x4_pos - particle.x1c_vel;
particle.x4_pos +=