summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-03-28 16:39:19 +0000
committerrubidium <rubidium@openttd.org>2008-03-28 16:39:19 +0000
commitcdd5f90e647f7544a5f7a617b2c49b32ec3b2328 (patch)
tree191db19ace35a831bd0df96578f39c5b74a40287
parentff3a4014042ed5743457705262c102074fce900b (diff)
downloadopenttd-cdd5f90e647f7544a5f7a617b2c49b32ec3b2328.tar.xz
(svn r12473) -Codechange: move EngineList to a more logical location.
-rw-r--r--src/engine.h2
-rw-r--r--src/openttd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/engine.h b/src/engine.h
index 9213f928c..4a24dd5c6 100644
--- a/src/engine.h
+++ b/src/engine.h
@@ -263,6 +263,8 @@ static inline const RoadVehicleInfo* RoadVehInfo(EngineID e)
return &_road_vehicle_info[e - ROAD_ENGINES_INDEX];
}
+typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp)
+
/* Engine list manipulators - current implementation is only C wrapper of CBlobT<EngineID> class (helpers.cpp) */
void EngList_Create(EngineList *el); ///< Creates engine list
void EngList_Destroy(EngineList *el); ///< Deallocate and destroy engine list
diff --git a/src/openttd.h b/src/openttd.h
index 884c472bc..8466bc958 100644
--- a/src/openttd.h
+++ b/src/openttd.h
@@ -14,8 +14,6 @@ typedef byte LandscapeID;
typedef uint16 EngineID;
typedef uint16 UnitID;
-typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp)
-
/* IDs used in Pools */
typedef uint16 WaypointID;
typedef uint16 EngineRenewID;