We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93d30e commit dab9a41Copy full SHA for dab9a41
code/weapon/weapons.cpp
@@ -4093,9 +4093,8 @@ void find_homing_object(object *weapon_objp, int num)
4093
continue;
4094
4095
homing_object_team = obj_team(objp);
4096
- bool can_lock_on_ship = objp->type != OBJ_SHIP || weapon_allowed_lock_restriction_object(wip, objp);
4097
bool can_attack = weapon_has_iff_restrictions(wip) || iff_x_attacks_y(wp->team, homing_object_team);
4098
- if (can_lock_on_ship && can_attack)
+ if (weapon_allowed_lock_restriction_object(wip, objp) && can_attack)
4099
{
4100
if ( objp->type == OBJ_SHIP )
4101
0 commit comments