(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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user