diff options
author | Erich Eckner <git@eckner.net> | 2020-05-13 21:29:54 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-01-16 21:58:17 +0100 |
commit | 68e1c45522d182e1496e2a99a27d986d4bb784ae (patch) | |
tree | 40ec506010429c491cf84227d205bf3d7ede60f1 /src/town_cmd.cpp | |
parent | 7cc0d7daf14ed1c893d9dc35f634b25ccbbcebbf (diff) | |
download | openttd-68e1c45522d182e1496e2a99a27d986d4bb784ae.tar.xz |
RandomTile() and RandomTileSeed() should use the TopTile() most of the time (always?)
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 450582941..ade909a6b 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2156,7 +2156,7 @@ static Town *CreateRandomTown(uint attempts, uint32 townnameparts, TownSize size do { /* Generate a tile index not too close from the edge */ - TileIndex tile = AlignTileToGrid(RandomTile(), layout); + TileIndex tile = AlignTileToGrid(TopTile(RandomTile()), layout); /* if we tried to place the town on water, slide it over onto * the nearest likely-looking spot */ |