Revert "Fix update's resupply of food to avoid starvation"

This reverts commit 03811b2c97.

That "fix" could actually conjure up food.  The resupply doesn't wipe
out food, because it resuppies from the sector itself.
This commit is contained in:
Markus Armbruster 2008-03-26 22:00:35 +01:00
parent 15109ebef0
commit e89a4b5657

View file

@ -82,9 +82,9 @@ do_feed(struct sctstr *sp, struct natstr *np, short *vec,
if (vec[I_FOOD] < needed && sp->sct_own == sp->sct_oldown) {
/* steal food from warehouses, headquarters,
supply ships in port, or supply units */
vec[I_FOOD] += supply_commod(sp->sct_own,
vec[I_FOOD] = supply_commod(sp->sct_own,
sp->sct_x, sp->sct_y,
I_FOOD, needed - vec[I_FOOD]);
I_FOOD, needed);
}
}
starved = feed_people(vec, etu);