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:
parent
15109ebef0
commit
e89a4b5657
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue