From 376b2f42c9a87eaa441c8197875d311326a94058 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 13 Aug 2025 23:18:26 +0100 Subject: [PATCH] Fix 0878f71051: Incorrect station layout for even platform counts. (#14515) --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 3ddb4b7d3a..d73bbc1d13 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1125,7 +1125,7 @@ StationGfx RailStationTileLayout::Iterator::operator*() const } /* None of the above so must be north or south part of larger station. */ - return ((this->position / this->stl.length) & (this->stl.platforms % 2)) ? 4 : 6; + return (((this->position / this->stl.length) % 2) == (this->stl.platforms % 2)) ? 4 : 6; } /**