diff options
author | celestar <celestar@openttd.org> | 2005-01-14 09:20:12 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-01-14 09:20:12 +0000 |
commit | febac23b25e468dbdc7491477d51458fff9e16ca (patch) | |
tree | ffb100e443120f881e94596910bf6feb7421f6ca /tree_cmd.c | |
parent | 9e10458209fb9eaabb9192383614d950b572083c (diff) | |
download | openttd-febac23b25e468dbdc7491477d51458fff9e16ca.tar.xz |
(svn r1504) enummed town ratings (Jango)
Diffstat (limited to 'tree_cmd.c')
-rw-r--r-- | tree_cmd.c | 4 |
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; |