forked from github/server
"Ein Bauer stirbt nicht" - Fixed a rounding error.
This commit is contained in:
parent
f168a45b2a
commit
a7a0ddfbf7
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ peasants(region * r)
|
||||||
/* Es verhungert maximal die unterernährten Bevölkerung. */
|
/* Es verhungert maximal die unterernährten Bevölkerung. */
|
||||||
|
|
||||||
n = min(peasants - satiated, rpeasants(r));
|
n = min(peasants - satiated, rpeasants(r));
|
||||||
dead += (int)(n * PEASANT_STARVATION_CHANCE);
|
dead += (int)(0.5F + n * PEASANT_STARVATION_CHANCE);
|
||||||
|
|
||||||
if (dead > 0) {
|
if (dead > 0) {
|
||||||
message * msg = add_message(&r->msgs, msg_message("phunger", "dead", dead));
|
message * msg = add_message(&r->msgs, msg_message("phunger", "dead", dead));
|
||||||
|
|
Loading…
Reference in a new issue