修复c4吸附机甲问题
This commit is contained in:
parent
ad84ce5d5b
commit
21b7aaa279
@ -72,7 +72,10 @@ void Bullet::OnHit(std::set<Entity*>& objects)
|
||||
|
||||
void Bullet::ProcBomb()
|
||||
{
|
||||
self_collider_->rad = GetExplosionRange();
|
||||
float old_collider_rad = self_collider_->rad;
|
||||
if (meta->i->_inventory_slot() != IS_C4) {
|
||||
self_collider_->rad = GetExplosionRange();
|
||||
}
|
||||
if (IsCurrWeapon()) {
|
||||
}
|
||||
std::set<Entity*> objects;
|
||||
@ -258,6 +261,7 @@ void Bullet::ProcBomb()
|
||||
}
|
||||
room->RemoveObjectLater(this);
|
||||
later_removed_ = true;
|
||||
self_collider_->rad = old_collider_rad;
|
||||
}
|
||||
|
||||
void Bullet::ProcSmokeBomb()
|
||||
|
Loading…
x
Reference in New Issue
Block a user