1.汽油桶无法打爆
This commit is contained in:
parent
1629441404
commit
e111fd15f9
@ -313,18 +313,16 @@ void Bullet::Check(float distance)
|
||||
std::set<ColliderComponent*> colliders;
|
||||
room->map_service->GetColliders(room, GetX(), GetY(), colliders);
|
||||
for (ColliderComponent* collider : colliders) {
|
||||
if (TestCollision(room, collider) &&
|
||||
!a8::HasBitFlag(collider->tag, kHalfWallTag)) {
|
||||
if (collider->owner->IsEntityType(ET_Obstacle)) {
|
||||
Obstacle* obstacle = (Obstacle*)collider->owner;
|
||||
if (obstacle->CanThroughable(this)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (!obstacle->CanThroughable(this)) {
|
||||
if (TestCollision(room, collider)) {
|
||||
objects.insert(collider->owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
float bullet_range = gun_meta->i->range();
|
||||
if (gun_upgrade_meta && gun_upgrade_meta->GetAttrValue(gun_lv, kHAT_ShotRange) > 0) {
|
||||
bullet_range += gun_upgrade_meta->GetAttrValue(gun_lv, kHAT_ShotRange);
|
||||
|
Loading…
x
Reference in New Issue
Block a user