Temporary fix for missiles launched from zero height

This commit is contained in:
Matija Hustić
2015-10-16 10:22:58 +02:00
parent 410f121a1e
commit 5fe7c4af4d

View File

@@ -284,7 +284,7 @@ namespace OpenRA.Mods.Common.Effects
var diffClfMslHgt = predClfHgt - pos.Z; var diffClfMslHgt = predClfHgt - pos.Z;
// Incline coming up // Incline coming up
if (diffClfMslHgt >= 0) if (diffClfMslHgt >= 0 && predClfDist > 0)
DetermineLaunchSpeedAndAngleForIncline(predClfDist, diffClfMslHgt, relTarHorDist, out speed, out vFacing); DetermineLaunchSpeedAndAngleForIncline(predClfDist, diffClfMslHgt, relTarHorDist, out speed, out vFacing);
else if (lastHt != 0) else if (lastHt != 0)
{ {