(retreat_ship1): Don't charge mobility for sweeping. Should have been

changed along with shpsub.c rev. 1.49.
This commit is contained in:
Markus Armbruster 2006-06-27 17:36:16 +00:00
parent 0cf5c17f08
commit 6fd656a685

View file

@ -268,7 +268,6 @@ retreat_ship1(struct shpstr *sp, char code, int orig)
mines = sect.sct_mines; mines = sect.sct_mines;
changed = 0; changed = 0;
if ((mcp->m_flags & M_SWEEP) && sect.sct_type == SCT_WATER) { if ((mcp->m_flags & M_SWEEP) && sect.sct_type == SCT_WATER) {
sp->shp_mobil -= mobcost;
max = mcp->m_item[I_SHELL]; max = mcp->m_item[I_SHELL];
shells = sp->shp_item[I_SHELL]; shells = sp->shp_item[I_SHELL];
for (m = 0; mines > 0 && m < 5; m++) { for (m = 0; mines > 0 && m < 5; m++) {