summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-12-28 13:18:07 +0000
committerpeter1138 <peter1138@openttd.org>2006-12-28 13:18:07 +0000
commit8ca21a3cb03f3275061676b9d20a7ba18429064e (patch)
tree8b5dc4c32db6c462ecc95765f9e84dbdc2b09526 /newgrf.c
parentb78dd8742db08230fd0b61e55cbb47f50ba304ea (diff)
downloadopenttd-8ca21a3cb03f3275061676b9d20a7ba18429064e.tar.xz
(svn r7592) -Feature: Add support for tractive effort to 'realistic' acceleration.
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 60a16a46b..ea91c1e33 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -416,6 +416,10 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
FOR_EACH_OBJECT ei[i].callbackmask = grf_load_byte(&buf);
break;
+ case 0x1F: /* Tractive effort coefficient */
+ FOR_EACH_OBJECT rvi[i].tractive_effort = grf_load_byte(&buf);
+ break;
+
case 0x21: /* Shorter vehicle */
FOR_EACH_OBJECT rvi[i].shorten_factor = grf_load_byte(&buf);
break;
@@ -466,7 +470,6 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
/* TODO */
/* Fall-through for unimplemented one byte long properties. */
- case 0x1F: /* Tractive effort */
case 0x20: /* Air drag */
case 0x26: /* Retire vehicle early */
/* TODO */
@@ -3692,3 +3695,4 @@ void LoadNewGRF(uint load_index, uint file_index)
CalculateRefitMasks();
}
+