Simplify do_missile_firing test for whether to autoselect
If `drop_bomb` is false, then `weapon == player_info.Secondary_weapon`. If `drop_bomb` is true, then `weapon == bomb`.
This commit is contained in:
parent
c0e12eee3f
commit
b4fcb9c305
|
@ -2402,7 +2402,7 @@ void do_missile_firing(int drop_bomb, const secondary_weapon_index_t bomb, const
|
|||
}
|
||||
|
||||
// don't autoselect if dropping prox and prox not current weapon
|
||||
if (!drop_bomb || player_info.Secondary_weapon == bomb)
|
||||
if (player_info.Secondary_weapon == weapon)
|
||||
auto_select_secondary_weapon(player_info); //select next missile, if this one out of ammo
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue