summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-05 14:47:15 +0000
committertron <tron@openttd.org>2006-02-05 14:47:15 +0000
commit208a4b4944525b9be53bacbabd11652ba777e4c7 (patch)
tree060012f8a54300b5071529647ce2b77c29c4ef0f /smallmap_gui.c
parenta7273d95b86d0eeba66aac0abb04cca7b0f495ab (diff)
downloadopenttd-208a4b4944525b9be53bacbabd11652ba777e4c7.tar.xz
(svn r3556) Add accessors for handling tree tiles
See tree.h for details
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c
index 0b3463c73..f1e7e547e 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -10,6 +10,7 @@
#include "map.h"
#include "tile.h"
#include "gui.h"
+#include "tree.h"
#include "window.h"
#include "gfx.h"
#include "viewport.h"
@@ -489,7 +490,7 @@ static inline uint32 GetSmallMapVegetationPixels(TileIndex tile)
break;
case MP_TREES:
- if ((_m[tile].m2 & 0x30) == 0x20) {
+ if (GetTreeGround(tile) == TR_SNOW_DESERT) {
bits = (_opt.landscape == LT_HILLY) ? MKCOLOR(0x98575798) : MKCOLOR(0xC25757C2);
} else {
bits = MKCOLOR(0x54575754);