Permit ships that can drop depth charges, but not fire

No such ships exist in the stock game.
This commit is contained in:
Markus Armbruster 2013-05-08 20:41:46 +02:00
parent 92a502df0b
commit 9b0b0dc772

View file

@ -160,7 +160,8 @@ multifire(void)
pr("Not enough mil on ship #%d\n", item.ship.shp_uid);
continue;
}
if (mchr[item.ship.shp_type].m_glim == 0) {
if (mchr[item.ship.shp_type].m_glim == 0
&& !(mchr[fship.shp_type].m_flags & M_DCH)) {
pr("Ships %d cannot fire guns!\n", item.ship.shp_uid);
continue;
}