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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user