[Fix] Fixed broken weapon lockon.
This commit is contained in:
parent
ac04faacea
commit
25e3174c33
@ -173,8 +173,8 @@ static void think_seeker(Weapon* w, const double dt) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ammo isn't locked on yet.. */
|
/* Only run if locked on. */
|
||||||
if(SDL_GetTicks() > (w->outfit->u.amm.lockon)) {
|
if(w->lockon < 0.) {
|
||||||
switch(w->status) {
|
switch(w->status) {
|
||||||
case WEAPON_STATUS_OK: /* Check to see if can get jammed. */
|
case WEAPON_STATUS_OK: /* Check to see if can get jammed. */
|
||||||
if((p->jam_range != 0.) && /* Target has jammer and weapon is in range. */
|
if((p->jam_range != 0.) && /* Target has jammer and weapon is in range. */
|
||||||
|
Loading…
Reference in New Issue
Block a user