summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 6f719a2a1..9cc1ec111 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -428,7 +428,7 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
if (mode == AM_ACCEL) {
return (force - resistance) / (mass * 4);
} else {
- return min((-force - resistance) / (mass * 4), 10000 / (mass * 4));
+ return min((-force - resistance) / (mass * 4), -10000 / (mass * 4));
}
}