From 087fe86ed28fb6ac5885cac7f64d34ccd5a9c140 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 6 Feb 2006 09:18:04 +0000 Subject: (svn r3564) Several smaller changes: - Don't treat non-booleans as booleans - Reduce variable scope - Bracing - Use DeMorgan's law to make conditionals easier to read - if cascade -> switch - Replace some magic numbers by symbolic names - Avoid assignments within other statements --- table/tree_land.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'table') diff --git a/table/tree_land.h b/table/tree_land.h index d94ef1be4..9d68681d6 100644 --- a/table/tree_land.h +++ b/table/tree_land.h @@ -3,11 +3,11 @@ #ifndef TREE_LAND_H #define TREE_LAND_H -static const SpriteID _tree_sprites_1[4] = { - 0x118D, - 0x11A0, - 0x11B3, - 0x11C6, +static const SpriteID _tree_sprites_1[] = { + SPR_FLAT_1_QUART_SNOWY_TILE, + SPR_FLAT_2_QUART_SNOWY_TILE, + SPR_FLAT_3_QUART_SNOWY_TILE, + SPR_FLAT_SNOWY_TILE }; static const byte _tree_base_by_landscape[4] = {0, 12, 20, 32}; -- cgit v1.2.3-54-g00ecf