(svn r19360) -Add: [NewGRF] When the tractive effort of a road vehicle is not set, use a default value of 4C.

This commit is contained in:
terkhen 2010-03-06 19:48:17 +00:00
parent 3bb2a50df4
commit e4bb3f80b7

View File

@ -81,6 +81,8 @@ Engine::Engine(VehicleType type, EngineID base)
this->info.climates = 0x80; this->info.climates = 0x80;
/* Set model life to maximum to make wagons available */ /* Set model life to maximum to make wagons available */
this->info.base_life = 0xFF; this->info.base_life = 0xFF;
/* Set road vehicle tractive effort to the default value */
if (type == VEH_ROAD) this->u.road.tractive_effort = 0x4C;
return; return;
} }