forked from github/server
- explizite umwandlung double->int
- kommentar
This commit is contained in:
parent
8092293003
commit
060b31f3cb
1 changed files with 1 additions and 1 deletions
|
@ -776,7 +776,7 @@ trees(region * r, const int current_season, const int last_weeks_season)
|
|||
if(production(r) <= 0) return;
|
||||
|
||||
/* Grundchance 1.0% */
|
||||
seedchance = FORESTGROWTH * RESOURCE_QUANTITY;
|
||||
seedchance = (int)(FORESTGROWTH * RESOURCE_QUANTITY);
|
||||
/* Jeder Elf in der Region erhöht die Chance um 0.0008%. */
|
||||
seedchance += (min(elves, (production(r)*MAXPEASANTS_PER_AREA)/8)) * 8;
|
||||
grownup_trees = rtrees(r, 2);
|
||||
|
|
Loading…
Reference in a new issue