summaryrefslogtreecommitdiff
path: root/engine_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'engine_gui.c')
-rw-r--r--engine_gui.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/engine_gui.c b/engine_gui.c
index 606b5909e..54d0395f7 100644
--- a/engine_gui.c
+++ b/engine_gui.c
@@ -19,12 +19,9 @@ static StringID GetEngineCategoryName(EngineID engine)
{
if (engine < NUM_TRAIN_ENGINES) {
switch (GetEngine(engine)->railtype) {
- case 0:
- return STR_8102_RAILROAD_LOCOMOTIVE;
- case 1:
- return STR_8106_MONORAIL_LOCOMOTIVE;
- case 2:
- return STR_8107_MAGLEV_LOCOMOTIVE;
+ case RAILTYPE_RAIL: return STR_8102_RAILROAD_LOCOMOTIVE;
+ case RAILTYPE_MONO: return STR_8106_MONORAIL_LOCOMOTIVE;
+ case RAILTYPE_MAGLEV: return STR_8107_MAGLEV_LOCOMOTIVE;
}
}