(shp_sweep): New parameter takemob. Charge mobility only if it's

true.
(shp_nav_one_sector): Pass false.  This lets minesweepers move at the
speed their stats indicate.  Closes #1498801.
(navi): Pass true.  This ensures sweeping without moving still costs
mobility.
This commit is contained in:
Markus Armbruster 2006-06-11 18:09:09 +00:00
parent 0252d4a750
commit f900ac68cb
3 changed files with 9 additions and 7 deletions

View file

@ -156,7 +156,7 @@ navi(void)
} else if (cp[-1] == 'i') {
shp_list(&ship_list);
} else {
stopping |= shp_sweep(&ship_list, 1, player->cnum);
stopping |= shp_sweep(&ship_list, 1, 0, player->cnum);
}
continue;
} else if (*cp == 'r' || *cp == 'l' || *cp == 's') {