From d1b39676e249e76e6832a6c263d343addd8358e1 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 29 Mar 2009 17:16:48 +0200 Subject: [PATCH] Change mine command not to work under bridges for now This is for consistency with aerial mining. Seamines don't work under bridges anyway (they did a long time ago, until Empire 2). Making seamines work under bridges again wouldn't be hard, but it would make the 'X' in bmaps ambiguous. --- info/mine.t | 7 +------ src/lib/commands/mine.c | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/info/mine.t b/info/mine.t index 7016fa8f..7f4c7894 100644 --- a/info/mine.t +++ b/info/mine.t @@ -24,16 +24,11 @@ removing some mines. Ships of tech 310 or higher can detect mines with their sonar. See \*Qinfo sonar\*U for more information. .s1 -Sea sectors under bridge spans can be mined. -Your ships will automatically avoid these mines when passing through, -(and your minesweepers will not not pick them up). -.s1 Note that the sector is checked for possible mine hits only when a ship moves into it; thus, a ship may safely drop mines in a sector and then move out. On the other hand, the mines know no allegiance, -so moving back into a mined sector is foolish at best -unless it is under a bridge span. +so moving back into a mined sector is foolish at best. .s1 Mines in the same sector as a bridge that collapses are cleared. .s1 diff --git a/src/lib/commands/mine.c b/src/lib/commands/mine.c index 99dc5753..e3f62243 100644 --- a/src/lib/commands/mine.c +++ b/src/lib/commands/mine.c @@ -68,7 +68,7 @@ mine(void) continue; mines_avail = MIN(shells, mines); if (getsect(ship.shp_x, ship.shp_y, §) == 0 || - !SCT_MINES_ARE_SEAMINES(§)) { + sect.sct_type != SCT_WATER) { pr("You can't lay mines there!!\n"); continue; }