diff options
author | rubidium <rubidium@openttd.org> | 2007-05-06 19:44:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-06 19:44:22 +0000 |
commit | f47e81c90028898a387c1b69fe43954f2daa5027 (patch) | |
tree | 8f1d3ee951e23d21c44efd4ddb13d719befd7763 /src/vehicle.cpp | |
parent | d339143e953941745951520fa171a2484586db57 (diff) | |
download | openttd-f47e81c90028898a387c1b69fe43954f2daa5027.tar.xz |
(svn r9799) -Codechange: separate engine class and engine running cost class (mart3p).
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 897fee58d..745ca776a 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2454,6 +2454,7 @@ const Livery *GetEngineLivery(EngineID engine_type, PlayerID player, EngineID pa scheme = LS_PASSENGER_WAGON_STEAM; } else { switch (RailVehInfo(parent_engine_type)->engclass) { + default: NOT_REACHED(); case EC_STEAM: scheme = LS_PASSENGER_WAGON_STEAM; break; case EC_DIESEL: scheme = LS_PASSENGER_WAGON_DIESEL; break; case EC_ELECTRIC: scheme = LS_PASSENGER_WAGON_ELECTRIC; break; @@ -2466,6 +2467,7 @@ const Livery *GetEngineLivery(EngineID engine_type, PlayerID player, EngineID pa bool is_mu = HASBIT(_engine_info[engine_type].misc_flags, EF_RAIL_IS_MU); switch (rvi->engclass) { + default: NOT_REACHED(); case EC_STEAM: scheme = LS_STEAM; break; case EC_DIESEL: scheme = is_mu ? LS_DMU : LS_DIESEL; break; case EC_ELECTRIC: scheme = is_mu ? LS_EMU : LS_ELECTRIC; break; |