Skip to content

Commit

Permalink
Fix OpenTTD#10493: Fix with station stop location adjusted.
Browse files Browse the repository at this point in the history
(OpenTTD#8424 is not fixed in this particular commit.)
  • Loading branch information
TrevorShelton committed Apr 3, 2023
1 parent 73474b0 commit c053994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/train_cmd.cpp
Expand Up @@ -294,7 +294,7 @@ int GetTrainStopLocation(StationID station_id, TileIndex tile, const Train *v, i

/* Subtract half the front vehicle length of the train so we get the real
* stop location of the train. */
return stop - (v->gcache.cached_veh_length + 1) / 2;
return stop - (v->gcache.cached_veh_length) / 2 - 1;
}


Expand Down

0 comments on commit c053994

Please sign in to comment.