mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-20 07:40:31 +00:00
Update speedup bonus & fixing one bug (double bonus/...)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user