summaryrefslogtreecommitdiff
path: root/tree_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-01-14 09:20:12 +0000
committercelestar <celestar@openttd.org>2005-01-14 09:20:12 +0000
commit957635121c5a141f7ed37e3972f29bcf41dcee03 (patch)
treeffb100e443120f881e94596910bf6feb7421f6ca /tree_cmd.c
parent0c75fe0948eb4a239e9bd0cc93dead256925bac5 (diff)
downloadopenttd-957635121c5a141f7ed37e3972f29bcf41dcee03.tar.xz
(svn r1504) enummed town ratings (Jango)
Diffstat (limited to 'tree_cmd.c')
-rw-r--r--tree_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index fca9f1ef6..47f9792db 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -197,7 +197,7 @@ int32 CmdPlantTree(int ex, int ey, uint32 flags, uint32 p1, uint32 p2)
if (_game_mode != GM_EDITOR && _current_player < MAX_PLAYERS) {
Town *t = ClosestTownFromTile(ti.tile, _patches.dist_local_authority);
if (t != NULL)
- ChangeTownRating(t, 7, 220);
+ ChangeTownRating(t, RATING_TREE_UP_STEP, RATING_TREE_MAXIMUM);
}
m2 = 0;
if ( (ti.map5 & 0x1C) == 4 ) {
@@ -350,7 +350,7 @@ static int32 ClearTile_Trees(uint tile, byte flags) {
if (flags & DC_EXEC && _current_player < MAX_PLAYERS) {
Town *t = ClosestTownFromTile(tile, _patches.dist_local_authority);
if (t != NULL)
- ChangeTownRating(t, -35, -1000);
+ ChangeTownRating(t, RATING_TREE_DOWN_STEP, RATING_TREE_MINIMUM);
}
num = (_map5[tile] >> 6) + 1;