diff options
author | rubidium <rubidium@openttd.org> | 2010-11-18 14:32:09 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-18 14:32:09 +0000 |
commit | 2223ff92c7f9f23ced4c63a3591aa46d1c2b52b2 (patch) | |
tree | 2aca4783ed87aa6c09a9e38bbc49cbf7daf0f606 /src/engine.cpp | |
parent | 46186134c892f236ecc610aacd6c18ee95600d5f (diff) | |
download | openttd-2223ff92c7f9f23ced4c63a3591aa46d1c2b52b2.tar.xz |
(svn r21240) -Feature: [NewGRF] Implement action0 visual effect properties for ships and RVs (Hirundo)
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 16f6363fe..4bccb97b0 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -86,7 +86,12 @@ Engine::Engine(VehicleType type, EngineID base) /* Set road vehicle tractive effort to the default value */ if (type == VEH_ROAD) this->u.road.tractive_effort = 0x4C; /* Set visual effect to the default value */ - if (type == VEH_TRAIN) this->u.rail.visual_effect = VE_DEFAULT; + switch (type) { + case VEH_TRAIN: this->u.rail.visual_effect = VE_DEFAULT; break; + case VEH_ROAD: this->u.road.visual_effect = VE_DEFAULT; break; + case VEH_SHIP: this->u.ship.visual_effect = VE_DEFAULT; break; + default: break; // The aircraft, disasters and especially visual effects have no NewGRF configured visual effects + } return; } |