added a bandage to a huge wound (collisionsystem wasn't calling the two callbacks, just one, now it's still only one, but the bonuses are applied only if you're on them

This commit is contained in:
HENRY Benjamin
2021-06-09 22:22:27 +02:00
parent fdcea71fcd
commit 2955cd76a7
3 changed files with 9 additions and 14 deletions

View File

@@ -21,10 +21,6 @@ namespace BBM
const WAL::Entity &wall,
CollisionComponent::CollidedAxis collidedAxis)
{
auto name = entity.getName();
if (name == "Unbreakable Wall" || name == "Breakable Block") {
name = "salut";
}
auto *mov = entity.tryGetComponent<MovableComponent>();
if (!mov)