- Fix Bauernwanderungsproblem (Nerod). Gewichtungen dürfen nicht negativ werden.

This commit is contained in:
Christian Schlittchen 2002-03-24 08:09:39 +00:00
parent a2eeea7dc8
commit a12170916c
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}