1
This commit is contained in:
parent
5340384caa
commit
dc4f20fb24
@ -441,7 +441,7 @@ void Bullet::Check(float distance)
|
|||||||
if (gun_upgrade_meta && gun_upgrade_meta->GetAttrValue(gun_lv, kHAT_ShotRange) > 0) {
|
if (gun_upgrade_meta && gun_upgrade_meta->GetAttrValue(gun_lv, kHAT_ShotRange) > 0) {
|
||||||
bullet_range += gun_upgrade_meta->GetAttrValue(gun_lv, kHAT_ShotRange);
|
bullet_range += gun_upgrade_meta->GetAttrValue(gun_lv, kHAT_ShotRange);
|
||||||
}
|
}
|
||||||
if (!objects.empty() || distance > bullet_range ||
|
if (!objects.empty() || (!IsBomb() && distance > bullet_range) ||
|
||||||
(IsBomb() && meta->i->_inventory_slot() != IS_RPG && distance >= fly_distance)
|
(IsBomb() && meta->i->_inventory_slot() != IS_RPG && distance >= fly_distance)
|
||||||
) {
|
) {
|
||||||
if (IsBomb()) {
|
if (IsBomb()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user