(do_feed): Don't update sp->sct_avail for growing of emergency ration,
that's the caller's job.
This commit is contained in:
parent
90142a318b
commit
be97da327e
1 changed files with 0 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue