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/vehicle.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/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index e7dc7c2d0..ce32dcc5f 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -1864,7 +1864,7 @@ void Vehicle::UpdateVisualEffect(bool allow_power_change) const Engine *e = Engine::Get(this->engine_type); if (this->type == VEH_TRAIN) { - if (e->u.rail.visual_effect != 0) { + if (e->u.rail.visual_effect != VE_DEFAULT) { this->vcache.cached_vis_effect = e->u.rail.visual_effect; } else { Train *t = Train::From(this); |