From a12170916c0d90787059a40877429775e590f461 Mon Sep 17 00:00:00 2001 From: Christian Schlittchen Date: Sun, 24 Mar 2002 08:09:39 +0000 Subject: [PATCH] =?UTF-8?q?-=20Fix=20Bauernwanderungsproblem=20(Nerod).=20?= =?UTF-8?q?Gewichtungen=20d=C3=BCrfen=20nicht=20negativ=20werden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/gamecode/laws.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index 6c3f8b1ad..7dd0fb2b3 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -432,6 +432,7 @@ calculate_emigration(region *r) w = 0; } else { w = rpeasants(rc) - maxworkingpeasants(rc); + w = max(0,w); if(rterrain(rc) == T_VOLCANO || rterrain(rc) == T_VOLCANO_SMOKING) { w = w/10; }