From 1fc1ee5158c6abce2e39195f49508001f82751d7 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 25 Mar 2003 16:20:38 +0000 Subject: [PATCH] resourcenverbrauch, rundung --- src/common/gamecode/economy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gamecode/economy.c b/src/common/gamecode/economy.c index b55ed791b..80eafea05 100644 --- a/src/common/gamecode/economy.c +++ b/src/common/gamecode/economy.c @@ -1773,7 +1773,7 @@ attrib_allocation(const allocator * self, region * r, allocation * alist) norders -= want; al->get = min(al->want, (int)(x/al->save)); if (rdata->use) { - int use = (int)(al->get * al->save); + int use = required(al->get, al->save); if (use) rdata->use(r, rtype, use); } }