From f4f7bd5d341abd01464b78b08b41d19f50d65750 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers <c.oelckers@zdoom.fake> Date: Fri, 22 Jan 2016 18:24:15 +0100 Subject: [PATCH] - fixed a double/fixed_t mixup in P_SeekerMissile --- src/p_mobj.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index d691e062b..d65f8b52c 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -1684,7 +1684,8 @@ bool P_SeekerMissile (AActor *actor, angle_t thresh, angle_t turnMax, bool preci angle_t pitch = 0; if (!(actor->flags3 & (MF3_FLOORHUGGER|MF3_CEILINGHUGGER))) { // Need to seek vertically - double dist = MAX(1.0, FVector2(actor->Vec2To(target)).Length()); + fixedvec2 vec = actor->Vec2To(target); + double dist = MAX(1.0, TVector2<double>(vec.x, vec.y).Length()); // Aim at a player's eyes and at the middle of the actor for everything else. fixed_t aimheight = target->height/2; if (target->IsKindOf(RUNTIME_CLASS(APlayerPawn)))