summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-18 14:20:03 +0000
committerrubidium <rubidium@openttd.org>2010-11-18 14:20:03 +0000
commit46186134c892f236ecc610aacd6c18ee95600d5f (patch)
tree8c4fee2d4ad04aa85e1ad0088b3de56ba5885dde /src/engine.cpp
parent61ff042460410d5382db56c4af86db6c277f02e1 (diff)
downloadopenttd-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.cpp2
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;
}