changeset 11057:a56076ea98c6 draft

(svn r15397) -Fix [FS#2618]: a town could build a statue under a bridge.
author rubidium <rubidium@openttd.org>
date Sat, 07 Feb 2009 16:02:29 +0000
parents 399e5cb92660
children f68131a5cf7e
files src/town_cmd.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -2182,6 +2182,8 @@
 {
 	/* Statues can be build on slopes, just like houses. Only the steep slopes is a no go. */
 	if (IsSteepSlope(GetTileSlope(tile, NULL))) return false;
+	/* Don't build statues under bridges. */
+	if (MayHaveBridgeAbove(tile) && IsBridgeAbove(tile)) return false;
 
 	if (!IsTileType(tile, MP_HOUSE) &&
 			!IsTileType(tile, MP_CLEAR) &&