mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-26 21:54:22 +01:00
Fix 0878f71051: Incorrect station layout for even platform counts. (#14515)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user