diff options
author | dP <dp@dpointer.org> | 2020-05-12 02:21:14 +0300 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-05-13 08:43:01 +0100 |
commit | f2a9a1e2a5282d91760783bd04df3603badd2ba9 (patch) | |
tree | 202b462b0f617bf0b24995685547cb4671d00d88 /src/town_cmd.cpp | |
parent | 7bd52970a1e83cb88069e73e26479eb71bd17726 (diff) | |
download | openttd-f2a9a1e2a5282d91760783bd04df3603badd2ba9.tar.xz |
Fix #8137: New clients can't join (desync) after funding an industry
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 44c396cba..507cccd56 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2250,8 +2250,9 @@ static void MakeTownHouse(TileIndex t, Town *town, byte counter, byte stage, Hou if (size & BUILDING_HAS_4_TILES) ClearMakeHouseTile(t + TileDiffXY(1, 1), town, counter, stage, ++type, random_bits); if (!_generating_world) { - ForAllStationsAroundTiles(TileArea(t, (size & BUILDING_2_TILES_X) ? 2 : 1, (size & BUILDING_2_TILES_Y) ? 2 : 1), [town](Station *st) { + ForAllStationsAroundTiles(TileArea(t, (size & BUILDING_2_TILES_X) ? 2 : 1, (size & BUILDING_2_TILES_Y) ? 2 : 1), [town](Station *st, TileIndex tile) { town->stations_near.insert(st); + return true; }); } } |