diff options
author | rubidium <rubidium@openttd.org> | 2010-11-18 14:20:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-18 14:20:03 +0000 |
commit | 46186134c892f236ecc610aacd6c18ee95600d5f (patch) | |
tree | 8c4fee2d4ad04aa85e1ad0088b3de56ba5885dde /src/engine.cpp | |
parent | 61ff042460410d5382db56c4af86db6c277f02e1 (diff) | |
download | openttd-46186134c892f236ecc610aacd6c18ee95600d5f.tar.xz |
(svn r21239) -Codechange/Fix: [NewGRF] Use 0xFF instead of 0 as default value for visual effect. This makes setting train prop 22 to 0 actually work (Hirundo)
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index b95c61e27..16f6363fe 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -85,6 +85,8 @@ Engine::Engine(VehicleType type, EngineID base) this->info.base_life = 0xFF; /* 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; return; } |