- explizite umwandlung double->int

- kommentar
This commit is contained in:
Enno Rehling 2002-04-21 09:27:18 +00:00
parent 8092293003
commit 060b31f3cb
1 changed files with 1 additions and 1 deletions

View File

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