summaryrefslogtreecommitdiff
path: root/src/engine_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r--src/engine_gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index 0ecd94d15..9c41e38ad 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -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) {