summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-03-06 19:48:17 +0000
committerterkhen <terkhen@openttd.org>2010-03-06 19:48:17 +0000
commitd7f7c8949f555fb9f11e7fb4fffbbcf12426b27e (patch)
treedb020e4ef77e83fa6c67d2c15d7c66c632afbd9b /src
parent3e23b72e3002d882ac4a466420876c8e3b4c6d30 (diff)
downloadopenttd-d7f7c8949f555fb9f11e7fb4fffbbcf12426b27e.tar.xz
(svn r19360) -Add: [NewGRF] When the tractive effort of a road vehicle is not set, use a default value of 4C.
Diffstat (limited to 'src')
-rw-r--r--src/engine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 0cccfcaac..1381dbb14 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -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;
}