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