mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 13:55:10 +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