From ab954a934a20e21dc9e2672c380d8a7ab8531d33 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 9 May 2005 22:33:00 +0000 Subject: (svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115). - CodeChange: changed the airport gui airport-type checking. Added function GetValidAirports() that returns bitmasked availibility, is also used for checking. - CodeChange: to check tree-planting, 2 const arrays have been moved to table/tree_land.h (type and count) - CodeChange: added IsTownIndex() in following of IsStationIndex(), etc. - Fix (regression): road tunnels did not work anymore, forgot that their type was 0x200 (documented now) --- misc_gui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'misc_gui.c') diff --git a/misc_gui.c b/misc_gui.c index 887e26e3c..e30e0b0b3 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -5,6 +5,7 @@ #include "strings.h" #include "table/sprites.h" #include "table/strings.h" +#include "table/tree_land.h" #include "map.h" #include "window.h" #include "gui.h" @@ -271,8 +272,6 @@ void ShowAboutWindow(void) static int _tree_to_plant; -static const byte _tree_base_by_landscape[4] = {0, 12, 20, 32}; -static const byte _tree_count_by_landscape[4] = {12, 8, 12, 9}; static const uint32 _tree_sprites[] = { 0x655,0x663,0x678,0x62B,0x647,0x639,0x64E,0x632,0x67F,0x68D,0x69B,0x6A9, 0x6AF,0x6D2,0x6D9,0x6C4,0x6CB,0x6B6,0x6BD,0x6E0, -- cgit v1.2.3-54-g00ecf