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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user