Mercurial > hg > openttd
changeset 3003:6c507de1b9c4 draft
(svn r3583) Fix 2 glitches in r3556
author | tron <tron@openttd.org> |
---|---|
date | Thu, 09 Feb 2006 07:34:37 +0000 |
parents | 08c168976643 |
children | 7a4daa3e1cd9 |
files | tree_cmd.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tree_cmd.c +++ b/tree_cmd.c @@ -162,7 +162,7 @@ switch (GetTileType(tile)) { case MP_TREES: // no more space for trees? - if (_game_mode != GM_EDITOR && GetTreeCount(tile) != 3) { + if (_game_mode != GM_EDITOR && GetTreeCount(tile) == 3) { _error_message = STR_2803_TREE_ALREADY_HERE; continue; } @@ -215,6 +215,7 @@ SetFenceSW(tile, 0); SetTreeCount(tile, 0); SetTreeGrowth(tile, _game_mode == GM_EDITOR ? 3 : 0); + MarkTileDirtyByTile(tile); if (_game_mode == GM_EDITOR && IS_INT_INSIDE(treetype, TR_RAINFOREST, TR_CACTUS)) SetMapExtraBits(tile, 2);