changeset 8774:85f0d7e75eb7 draft

(svn r12473) -Codechange: move EngineList to a more logical location.
author rubidium <rubidium@openttd.org>
date Fri, 28 Mar 2008 16:39:19 +0000
parents fb8b9c0b7cd3
children 8207d9e330cc
files src/engine.h src/openttd.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/engine.h
+++ b/src/engine.h
@@ -263,6 +263,8 @@
 	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
--- a/src/openttd.h
+++ b/src/openttd.h
@@ -14,8 +14,6 @@
 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;