struct shpstr ship;
struct lndstr land;
/* leave at least 1 military in sectors/ships */
- int minimum = (type == I_MILIT ? 1 : 0);
+ int minimum = 0;
int can_move;
double move_cost, weight, mobcost;
int packing;
getsect(x, y, &dest);
getsect(x, y, §);
if (sect.sct_own == own) {
+ if (!opt_NOFOOD && type == I_FOOD)
+ minimum = 1 + (int)ceil(food_needed(sect.sct_item,
+ etu_per_update));
if (sect.sct_item[type] - wanted >= minimum) {
sect.sct_item[type] -= wanted;
if (actually_doit)