(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)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user