Update speedup bonus & fixing one bug (double bonus/...)

This commit is contained in:
EternalRat
2021-06-08 20:37:10 +02:00
parent 3009e34ac3
commit 58bbd1fb93
5 changed files with 17 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ namespace BBM
{
auto &controllable = entity.get<ControllableComponent>();
auto &movable = entity.get<MovableComponent>();
Vector2f move = controllable.move.normalized() * ControllableSystem::speed;
Vector2f move = controllable.move.normalized() * controllable.speed;
movable.addForce(Vector3f(move.x, controllable.jump, move.y));
}