From 25e3174c33fe1ff593f39ec8e836344d9e0502d3 Mon Sep 17 00:00:00 2001 From: Allanis Date: Tue, 15 Apr 2014 22:06:32 +0100 Subject: [PATCH] [Fix] Fixed broken weapon lockon. --- src/weapon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/weapon.c b/src/weapon.c index c4d5011..1bda436 100644 --- a/src/weapon.c +++ b/src/weapon.c @@ -173,8 +173,8 @@ static void think_seeker(Weapon* w, const double dt) { return; } - /* Ammo isn't locked on yet.. */ - if(SDL_GetTicks() > (w->outfit->u.amm.lockon)) { + /* Only run if locked on. */ + if(w->lockon < 0.) { switch(w->status) { case WEAPON_STATUS_OK: /* Check to see if can get jammed. */ if((p->jam_range != 0.) && /* Target has jammer and weapon is in range. */