diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-09 22:33:00 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-09 22:33:00 +0000 |
commit | ab954a934a20e21dc9e2672c380d8a7ab8531d33 (patch) | |
tree | adf0a3467d8519f1ef67e90a0a06731ea8c4dc1a /misc_gui.c | |
parent | 4ad80ae872fe2eea09d431a1d9849936ac37223b (diff) | |
download | openttd-ab954a934a20e21dc9e2672c380d8a7ab8531d33.tar.xz |
(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)
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 3 |
1 files changed, 1 insertions, 2 deletions
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, |