(do_feed): Don't update sp->sct_avail for growing of emergency ration,

that's the caller's job.
This commit is contained in:
Markus Armbruster 2007-01-14 09:46:30 +00:00
parent 90142a318b
commit be97da327e

View file

@ -78,9 +78,6 @@ do_feed(struct sctstr *sp, struct natstr *np, short *vec,
/* need to grow "emergency rations" */ /* need to grow "emergency rations" */
work_avail -= 2 * growfood(sp, vec, work_avail / 2, etu); work_avail -= 2 * growfood(sp, vec, work_avail / 2, etu);
/* It's twice as hard to grow those than norm */ /* It's twice as hard to grow those than norm */
bp_put_avail(bp, sp, work_avail);
if (!player->simulation)
sp->sct_avail = work_avail;
} }
if (vec[I_FOOD] < needed && sp->sct_own == sp->sct_oldown) { if (vec[I_FOOD] < needed && sp->sct_own == sp->sct_oldown) {
/* steal food from warehouses, headquarters, /* steal food from warehouses, headquarters,