Finishing the replay button

This commit is contained in:
Zoe Roux
2021-06-17 22:31:21 +02:00
parent a886b50239
commit d424c07744
17 changed files with 59 additions and 64 deletions
@@ -7,7 +7,6 @@
#include "Component/Movable/MovableComponent.hpp"
#include "Component/Controllable/ControllableComponent.hpp"
#include "Component/Health/HealthComponent.hpp"
#include "Entity/Entity.hpp"
namespace BBM
{
@@ -22,8 +21,6 @@ namespace BBM
auto health = entity->tryGetComponent<HealthComponent>();
Vector2f move = controllable.move.normalized() * controllable.speed;
if (health && health->getHealthPoint() <= 0)
return;
movable.addForce(Vector3f(move.x, 0, move.y));
}
}