(svn r7575) -Codechange: Allow the AI to build signals under bridges (revert r4911)
authorcelestar
Wed, 27 Dec 2006 13:48:57 +0000
changeset 5575 e33f975c5a4b
parent 5574 588336100083
child 5576 1507181db210
(svn r7575) -Codechange: Allow the AI to build signals under bridges (revert r4911)
BUGS
ai/default/default.c
--- a/BUGS	Wed Dec 27 13:24:36 2006 +0000
+++ b/BUGS	Wed Dec 27 13:48:57 2006 +0000
@@ -10,6 +10,3 @@
    to distinguish between them
 Missing curors / icons for construction (currently using the conventional ones)
 
-TODO:
-- Reallow the AI to build signals under bridges (about ai/default/default.c:1600) as
-  r4911 manually disallows it (not via the command)
--- a/ai/default/default.c	Wed Dec 27 13:24:36 2006 +0000
+++ b/ai/default/default.c	Wed Dec 27 13:48:57 2006 +0000
@@ -1615,9 +1615,8 @@
 
 			/* signals too? */
 			if (j & 3) {
-				/* XXX - we need to check manually whether we can build a signal if DC_EXEC is
-				   not set because the rail has not actually been built */
-				if (!IsTileType(c, MP_RAILWAY)) return CMD_ERROR;
+				// Can't build signals on a road.
+				if (IsTileType(c, MP_STREET)) return CMD_ERROR;
 
 				if (flag & DC_EXEC) {
 					j = 4 - j;