场景内建筑,被子弹命中边消失
This commit is contained in:
parent
62b560e3bf
commit
9ca49272d4
@ -469,6 +469,9 @@ void Obstacle::SetMasterId(Room* room, int master_id)
|
|||||||
|
|
||||||
void Obstacle::OnBulletHit(Bullet* bullet)
|
void Obstacle::OnBulletHit(Bullet* bullet)
|
||||||
{
|
{
|
||||||
|
if (meta->i->bullet_hit() == kBulletHitEatDmg) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!IsDead(bullet->room) &&
|
if (!IsDead(bullet->room) &&
|
||||||
!IsTerminatorAirDropBox(bullet->room)) {
|
!IsTerminatorAirDropBox(bullet->room)) {
|
||||||
if (meta->receive_special_damage_type != 0 &&
|
if (meta->receive_special_damage_type != 0 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user