summaryrefslogtreecommitdiff
path: root/ai/default
diff options
context:
space:
mode:
Diffstat (limited to 'ai/default')
-rw-r--r--ai/default/default.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index c0d19adee..b0915f10a 100644
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -1587,8 +1587,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;