mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
multiply by 2 logic
This commit is contained in:
parent
8a726f99b6
commit
7552d23f40
@ -309,7 +309,7 @@ export class ApplicationSettings extends ReadWriteProxy {
|
||||
const id = this.getAllSettings().movementSpeed;
|
||||
for (let i = 0; i < movementSpeeds.length; ++i) {
|
||||
if (movementSpeeds[i].id === id) {
|
||||
return movementSpeeds[moveFaster && i + 1 < movementSpeeds.length ? i + 1 : i].multiplier;
|
||||
return movementSpeeds[i].multiplier * (moveFaster ? 2 : 1);
|
||||
}
|
||||
}
|
||||
logger.error("Unknown movement speed id:", id);
|
||||
|
Loading…
Reference in New Issue
Block a user