summaryrefslogtreecommitdiff
path: root/tree_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-15 09:05:16 +0000
committertron <tron@openttd.org>2005-11-15 09:05:16 +0000
commit9f8c5d8fd268cc6007047025650951a546133ce1 (patch)
tree0fd804f56bf6ac8423e4614d9d0e42272f3c7356 /tree_cmd.c
parentb9729fb72ef38d39eac4fdbe00c50efe4b0fe0d2 (diff)
downloadopenttd-9f8c5d8fd268cc6007047025650951a546133ce1.tar.xz
(svn r3186) Unnecessary casts and truncation
Diffstat (limited to 'tree_cmd.c')
-rw-r--r--tree_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index 61d64d4c9..0356a2ab2 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -321,7 +321,7 @@ static void DrawTile_Trees(TileInfo *ti)
i = (ti->map5 >> 6) + 1;
do {
- if (te[--i].image != 0 && (byte)(te[i].x + te[i].y) < min) {
+ if (te[--i].image != 0 && te[i].x + te[i].y < min) {
min = te[i].x + te[i].y;
tep = &te[i];
}