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