(svn r7121) -Fix(r1): Tell the town that this player has built a statue only if it really did happened
authorbelugas
Thu, 09 Nov 2006 18:31:06 +0000
changeset 5065 929a12f006bf
parent 5064 9042f861d711
child 5066 72aa68614963
(svn r7121) -Fix(r1): Tell the town that this player has built a statue only if it really did happened
town_cmd.c
--- a/town_cmd.c	Thu Nov 09 13:03:34 2006 +0000
+++ b/town_cmd.c	Thu Nov 09 18:31:06 2006 +0000
@@ -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));
 	}
 }