1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-15 02:29:10 +00:00

Fix 0878f71051: Incorrect station layout for even platform counts. (#14515)

This commit is contained in:
2025-08-13 23:18:26 +01:00
committed by GitHub
parent 0878f71051
commit 376b2f42c9

View File

@@ -1125,7 +1125,7 @@ StationGfx RailStationTileLayout::Iterator::operator*() const
} }
/* None of the above so must be north or south part of larger station. */ /* 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;
} }
/** /**