mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 09:45:42 +00:00
Resetting the velocity on death
This commit is contained in:
@@ -63,10 +63,7 @@ namespace BBM
|
||||
entity.scheduleDeletion();
|
||||
|
||||
for (auto &[entity, controller, _] : gameScene->view<ControllableComponent, HealthComponent>()) {
|
||||
controller.disabled = true;
|
||||
controller.pause = false;
|
||||
controller.bomb = false;
|
||||
controller.move = Vector2f();
|
||||
controller.disable();
|
||||
}
|
||||
for (auto &[_, timer] : gameScene->view<TimerComponent>())
|
||||
timer.disabled = true;
|
||||
|
||||
Reference in New Issue
Block a user