Permit ships that can drop depth charges, but not fire
No such ships exist in the stock game.
This commit is contained in:
parent
92a502df0b
commit
9b0b0dc772
1 changed files with 2 additions and 1 deletions
|
@ -160,7 +160,8 @@ multifire(void)
|
||||||
pr("Not enough mil on ship #%d\n", item.ship.shp_uid);
|
pr("Not enough mil on ship #%d\n", item.ship.shp_uid);
|
||||||
continue;
|
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);
|
pr("Ships %d cannot fire guns!\n", item.ship.shp_uid);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue