mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Removed logic from application_settings
This commit is contained in:
@@ -901,9 +901,9 @@ export class Camera extends BasicSerializableObject {
|
||||
forceX += 1;
|
||||
}
|
||||
|
||||
let movementSpeed = this.root.app.settings.getMovementSpeed(
|
||||
actionMapper.getBinding(KEYMAPPINGS.navigation.mapMoveFaster).isCurrentlyPressed()
|
||||
);
|
||||
let movementSpeed =
|
||||
this.root.app.settings.getMovementSpeed() *
|
||||
(actionMapper.getBinding(KEYMAPPINGS.navigation.mapMoveFaster).isCurrentlyPressed() ? 2 : 1);
|
||||
|
||||
this.center.x += moveAmount * forceX * movementSpeed;
|
||||
this.center.y += moveAmount * forceY * movementSpeed;
|
||||
|
||||
Reference in New Issue
Block a user