(svn r13077) -Codechange: move function that updates cached num_engines to engine.cpp, make it run only 1 loop

This commit is contained in:
smatz
2008-05-13 21:36:09 +00:00
parent 316d3fbe1d
commit f92a48c24b
3 changed files with 44 additions and 31 deletions

View File

@@ -27,6 +27,7 @@ void DeleteCustomEngineNames();
bool IsEngineBuildable(EngineID engine, VehicleType type, PlayerID player);
CargoID GetEngineCargoType(EngineID engine);
void SetCachedEngineCounts();
typedef int CDECL EngList_SortTypeFunction(const void*, const void*); ///< argument type for EngList_Sort()
void EngList_Sort(EngineList *el, EngList_SortTypeFunction compare); ///< qsort of the engine list