summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 96c8691a5..c1437796d 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -506,7 +506,7 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
if (mode == AM_ACCEL) {
return (force - resistance) / (mass * 2);
} else {
- return min((-force - resistance) / mass, -10000 / mass);
+ return min(-force - resistance, -10000) / mass;
}
}