summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-11-09 18:31:06 +0000
committerbelugas <belugas@openttd.org>2006-11-09 18:31:06 +0000
commitebd054b8d839e1945c41a908a9898e7726515c4d (patch)
treeaccbc7da50e91532450ae5a15457a3727559f910 /town_cmd.c
parentfd2b3d3e14a377983682d5c43eda6b3a621cac34 (diff)
downloadopenttd-ebd054b8d839e1945c41a908a9898e7726515c4d.tar.xz
(svn r7121) -Fix(r1): Tell the town that this player has built a statue only if it really did happened
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/town_cmd.c b/town_cmd.c
index a8002d3f7..eb80448f1 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -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));
}
}