forked from github/server
- Fix Bauernwanderungsproblem (Nerod). Gewichtungen dürfen nicht negativ werden.
This commit is contained in:
parent
a2eeea7dc8
commit
a12170916c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue