diff --git a/src/laws.c b/src/laws.c index 69f2e90fe..4689d21d1 100755 --- a/src/laws.c +++ b/src/laws.c @@ -680,7 +680,7 @@ void immigration(void) { region *r; log_info(" - Einwanderung..."); - int repopulate=get_param_int(global.parameters, "rules.economy.repopulate", 1); + int repopulate=get_param_int(global.parameters, "rules.economy.repopulate_maximum", 90); for (r = regions; r; r = r->next) { if (r->land && r->land->newpeasants) { int rp = rpeasants(r) + r->land->newpeasants; @@ -689,7 +689,7 @@ void immigration(void) /* Genereate some (0-2 to 0-6 depending on the income) peasants out of nothing */ /*if less then 50 are in the region and there is space and no monster or deamon units in the region */ int peasants = rpeasants(r); - if (repopulate && r->land && (peasants < 50) && maxworkingpeasants(r) > (peasants+30)*2) + if (repopulate && r->land && (peasants < repopulate) && maxworkingpeasants(r) > (peasants+30)*2) { int badunit = 0; unit *u;