(svn r12473) -Codechange: move EngineList to a more logical location.
authorrubidium
Fri, 28 Mar 2008 16:39:19 +0000
changeset 8774 76293e58774e
parent 8773 1fabd174dbc8
child 8775 fd5e36ec9f6c
(svn r12473) -Codechange: move EngineList to a more logical location.
src/engine.h
src/openttd.h
--- a/src/engine.h	Fri Mar 28 16:38:18 2008 +0000
+++ b/src/engine.h	Fri Mar 28 16:39:19 2008 +0000
@@ -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	Fri Mar 28 16:38:18 2008 +0000
+++ b/src/openttd.h	Fri Mar 28 16:39:19 2008 +0000
@@ -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;