summaryrefslogtreecommitdiff
path: root/ai/default/default.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-12-27 13:48:57 +0000
committercelestar <celestar@openttd.org>2006-12-27 13:48:57 +0000
commit091cc1cc4bd4f9655945152499d8f44775c154e0 (patch)
tree41202d0871caa8b8f6e602a54505c631990438f2 /ai/default/default.c
parenteec3010fcfea22bbfcbc01097b56bf27db57a514 (diff)
downloadopenttd-091cc1cc4bd4f9655945152499d8f44775c154e0.tar.xz
(svn r7575) -Codechange: Allow the AI to build signals under bridges (revert r4911)
Diffstat (limited to 'ai/default/default.c')
-rw-r--r--ai/default/default.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index 0f69322b0..143e724b9 100644
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -1615,9 +1615,8 @@ clear_town_stuff:;
/* 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;