summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-22 14:09:30 +0000
committeryexo <yexo@openttd.org>2010-02-22 14:09:30 +0000
commit40f6e69ae9d57697fa8c2ac4dc218cb944581696 (patch)
tree2d56d11eae0962db5674aadc23e753db0279621b /src
parent5052777d0bbbd2322d4bfe2afc3914b9afe26f0d (diff)
downloadopenttd-40f6e69ae9d57697fa8c2ac4dc218cb944581696.tar.xz
(svn r19191) -Codechange: move AirportTileSpec to newgrf_airporttiles.h
Diffstat (limited to 'src')
-rw-r--r--src/airport.cpp13
-rw-r--r--src/airport.h11
-rw-r--r--src/station_cmd.cpp1
3 files changed, 1 insertions, 24 deletions
diff --git a/src/airport.cpp b/src/airport.cpp
index f4e069357..660b34ee8 100644
--- a/src/airport.cpp
+++ b/src/airport.cpp
@@ -18,7 +18,6 @@
#include "settings_type.h"
#include "table/airporttile_ids.h"
#include "table/airport_defaults.h"
-#include "table/airporttiles.h"
AirportSpec AirportSpec::dummy = {NULL, NULL, 0, 0, 0, 0, 0, MIN_YEAR, MIN_YEAR};
AirportSpec AirportSpec::oilrig = {NULL, NULL, 0, 1, 1, 0, 4, MIN_YEAR, MIN_YEAR};
@@ -37,18 +36,6 @@ AirportSpec AirportSpec::oilrig = {NULL, NULL, 0, 1, 1, 0, 4, MIN_YEAR, MIN_YEAR
return &_origin_airport_specs[type];
}
-/**
- * Retrieve airport tile spec for the given airport tile
- * @param gfx index of airport tile
- * @return A pointer to the corresponding AirportTileSpec
- */
-/* static */ const AirportTileSpec *AirportTileSpec::Get(StationGfx gfx)
-{
- assert(gfx < NUM_AIRPORTTILES);
- extern const AirportTileSpec _origin_airporttile_specs[];
- return &_origin_airporttile_specs[gfx];
-}
-
/* Uncomment this to print out a full report of the airport-structure
* You should either use
* - true: full-report, print out every state and choice with string-names
diff --git a/src/airport.h b/src/airport.h
index ea534fab2..49d86b62a 100644
--- a/src/airport.h
+++ b/src/airport.h
@@ -70,17 +70,6 @@ struct AirportSpec {
static AirportSpec oilrig;
};
-
-/**
- * Defines the data structure of each indivudual tile of an airport.
- */
-struct AirportTileSpec {
- uint16 animation_info; ///< Information about the animation (is it looping, how many loops etc)
- uint8 animation_speed; ///< The speed of the animation
-
- static const AirportTileSpec *Get(StationGfx gfx);
-};
-
enum {
AMED_NOSPDCLAMP = 1 << 0,
AMED_TAKEOFF = 1 << 1,
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index e9527a386..4539fb38f 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -48,6 +48,7 @@
#include "company_base.h"
#include "newgrf.h"
#include "table/airporttile_ids.h"
+#include "newgrf_airporttiles.h"
#include "table/strings.h"