From d46656487764be6a7b716552024c990804e2c139 Mon Sep 17 00:00:00 2001 From: Arne de Bruijn Date: Fri, 17 Mar 2023 17:21:42 +0100 Subject: [PATCH] Fix D2 homer speed The D2 code used the actual FrameTime instead of the idealHomerFrameTime for a homing speed calculation. --- d2/main/laser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2/main/laser.c b/d2/main/laser.c index 0bbd9c0b..e20fe44a 100644 --- a/d2/main/laser.c +++ b/d2/main/laser.c @@ -1526,7 +1526,7 @@ void Laser_do_weapon_sequence(object *obj, int doHomerFrame, fix idealHomerFrame } } if (speed+F1_0 < max_speed) { - speed += fixmul(max_speed, FrameTime/2); + speed += fixmul(max_speed, idealHomerFrameTime/2); if (speed > max_speed) speed = max_speed; }