summaryrefslogtreecommitdiff
path: root/tree_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-16 12:01:46 +0000
committertron <tron@openttd.org>2005-11-16 12:01:46 +0000
commit3bdb92446c27895599d356e5d163ee9b06504043 (patch)
tree57ab7d946f33a83ab3919738a96d2b38bf80b427 /tree_cmd.c
parentdb012c135e046f5b9151c66e56b0f9f1654911e1 (diff)
downloadopenttd-3bdb92446c27895599d356e5d163ee9b06504043.tar.xz
(svn r3196) Use structs instead of magic offsets into arrays
Diffstat (limited to 'tree_cmd.c')
-rw-r--r--tree_cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index 0356a2ab2..ed207f4c7 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -251,7 +251,7 @@ static void DrawTile_Trees(TileInfo *ti)
{
uint16 m2;
const uint32 *s;
- const byte *d;
+ const TreePos* d;
byte z;
m2 = _m[ti->tile].m2;
@@ -308,10 +308,10 @@ static void DrawTile_Trees(TileInfo *ti)
uint32 image = s[0] + (--i == 0 ? GB(ti->map5, 0, 3) : 3);
if (_display_opt & DO_TRANS_BUILDINGS) MAKE_TRANSPARENT(image);
te[i].image = image;
- te[i].x = d[0];
- te[i].y = d[1];
+ te[i].x = d->x;
+ te[i].y = d->y;
s++;
- d += 2;
+ d++;
} while (i);
/* draw them in a sorted way */