Resetting the velocity on death

This commit is contained in:
Zoe Roux
2021-06-20 19:19:35 +02:00
parent e2386e885b
commit 5293222f88
4 changed files with 12 additions and 5 deletions
@@ -20,4 +20,12 @@ namespace BBM
: WAL::Component(entity),
disabled(isDisabled)
{}
void ControllableComponent::disable()
{
this->disabled = true;
this->pause = false;
this->bomb = false;
this->move = Vector2f();
}
}