From dff34f8e92850a17cbda10d4382e2e86285a39ca Mon Sep 17 00:00:00 2001 From: Steffen Mecke Date: Tue, 13 Jan 2015 02:39:38 +0100 Subject: [PATCH] increase speed of peasant growth calculation --- src/laws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/laws.c b/src/laws.c index 761ddab00..eb55d7359 100755 --- a/src/laws.c +++ b/src/laws.c @@ -285,7 +285,7 @@ static void peasants(region * r) glueck = a->data.i * 1000; } - for (n = peasants; n; --n) { + for (n = peasants; n && glueck; --n) { int chances = 0; if (glueck > 0) {