1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 17:09:10 +00:00

(svn r17327) -Codechange: Allow external use of GetEngineCategoryName().

This commit is contained in:
alberth
2009-08-30 17:54:11 +00:00
parent db120540a0
commit 1ba000be12
3 changed files with 6 additions and 2 deletions

View File

@@ -27,6 +27,10 @@
#include "table/strings.h"
#include "table/sprites.h"
/** Return the category of an engine.
* @param engine Engine to examine.
* @return String describing the category ("road veh", "train". "airplane", or "ship") of the engine.
*/
StringID GetEngineCategoryName(EngineID engine)
{
switch (Engine::Get(engine)->type) {