summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/train_cmd.cpp')
-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 431455ba0..c551d1872 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -365,7 +365,7 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
if (IsTileType(v->tile, MP_STATION) && IsFrontEngine(v)) {
if (TrainShouldStop(v, v->tile)) {
- uint station_length = GetPlatformLength(v->tile, DirToDiagDir(v->direction));
+ int station_length = GetPlatformLength(v->tile, DirToDiagDir(v->direction));
int delta_v;
max_speed = 120;