(svn r4925) - Backport from trunk (r4911):

The AI no longer attempts to build signals under bridges.
This commit is contained in:
Darkvater 2006-05-20 17:35:11 +00:00
parent f5e0e18dca
commit 587cedc35b
1 changed files with 3 additions and 2 deletions

View File

@ -1620,8 +1620,9 @@ clear_town_stuff:;
/* signals too? */
if (j&3) {
// Can't build signals on a road.
if (IsTileType(c, MP_STREET)) return CMD_ERROR;
/* 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;
if (flag & DC_EXEC) {
j = 4 - j;