From 6def08571528e65dbfb0e7be6ca83eef0e4c6d34 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 11 Feb 2010 05:24:29 +0000 Subject: [PATCH] fix hunger/fishing --- src/common/gamecode/laws.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index dfaa3cdf3..3d5e0fd39 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -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);