diff options
author | belugas <belugas@openttd.org> | 2006-11-09 18:31:06 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-11-09 18:31:06 +0000 |
commit | ebd054b8d839e1945c41a908a9898e7726515c4d (patch) | |
tree | accbc7da50e91532450ae5a15457a3727559f910 | |
parent | fd2b3d3e14a377983682d5c43eda6b3a621cac34 (diff) | |
download | openttd-ebd054b8d839e1945c41a908a9898e7726515c4d.tar.xz |
(svn r7121) -Fix(r1): Tell the town that this player has built a statue only if it really did happened
-rw-r--r-- | town_cmd.c | 7 |
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)); } } |