mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 10:29:10 +00:00
(svn r7121) -Fix(r1): Tell the town that this player has built a statue only if it really did happened
This commit is contained in:
@@ -1502,10 +1502,11 @@ static void TownActionBuildStatue(Town* t)
|
||||
TileIndex tile = t->xy;
|
||||
const TileIndexDiffC *p;
|
||||
|
||||
SETBIT(t->statues, _current_player);
|
||||
|
||||
for (p = _statue_tiles; p != endof(_statue_tiles); ++p) {
|
||||
if (DoBuildStatueOfCompany(tile)) return;
|
||||
if (DoBuildStatueOfCompany(tile)) {
|
||||
SETBIT(t->statues, _current_player);
|
||||
return;
|
||||
}
|
||||
tile = TILE_ADD(tile, ToTileIndexDiff(*p));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user