(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:
rubidium
2010-11-18 14:20:03 +00:00
parent 1c7940255a
commit a56627cc77
5 changed files with 13 additions and 3 deletions

View File

@@ -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;
}