diff options
author | rubidium <rubidium@openttd.org> | 2008-07-18 16:40:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-18 16:40:29 +0000 |
commit | 3a799389ebf915cc59b6e85346d837621ebe771a (patch) | |
tree | 82319a3d42401c6d6fa4944e99863807f05c6f5f /src/town_cmd.cpp | |
parent | 891bec7e23a0a077df93b8fd1fe156ef059df8b4 (diff) | |
download | openttd-3a799389ebf915cc59b6e85346d837621ebe771a.tar.xz |
(svn r13731) -Codechange: make a pool of the array of players.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 76d872277..00236df3c 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2306,7 +2306,7 @@ static void UpdateTownGrowRate(Town *t) /* Increase player ratings if they're low */ const Player *p; FOR_ALL_PLAYERS(p) { - if (p->is_active && t->ratings[p->index] < RATING_GROWTH_MAXIMUM) { + if (t->ratings[p->index] < RATING_GROWTH_MAXIMUM) { t->ratings[p->index] = min((int)RATING_GROWTH_MAXIMUM, t->ratings[p->index] + RATING_GROWTH_UP_STEP); } } |