changeset 5065:0406417cdfd6 draft

(svn r7121) -Fix(r1): Tell the town that this player has built a statue only if it really did happened
author belugas <belugas@openttd.org>
date Thu, 09 Nov 2006 18:31:06 +0000
parents c7b50189d768
children bac7446fc18f
files town_cmd.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -1502,10 +1502,11 @@
 	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));
 	}
 }