(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 3e23b72e30
commit d7f7c8949f
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ Engine::Engine(VehicleType type, EngineID base)
this->info.climates = 0x80;
/* Set model life to maximum to make wagons available */
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;
}