fix hunger/fishing

This commit is contained in:
Enno Rehling 2010-02-11 05:24:29 +00:00
parent e443e26e18
commit 6def085715
1 changed files with 2 additions and 3 deletions

View File

@ -220,8 +220,7 @@ get_food(region *r)
* jede Einheit genug Silber für ihren Unterhalt hat. */
for (u = r->units; u; u = u->next) {
int style = INCOME_FISHING;
int need = style;
int need = lifestyle(u);
/* Erstmal zurücksetzen */
freset(u, UFL_HUNGER);
@ -236,7 +235,7 @@ get_food(region *r)
get = need;
} else {
int x = MIN(c, v->number);
get = (style * x) / v->number;
get = INCOME_FISHING * x;
}
if (get) {
change_money(v, get);