diff options
author | peter1138 <peter1138@openttd.org> | 2006-12-28 13:18:07 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-12-28 13:18:07 +0000 |
commit | e9e4ba822215abdcd5403dfd1517c52a631acb3a (patch) | |
tree | 8b5dc4c32db6c462ecc95765f9e84dbdc2b09526 /newgrf.c | |
parent | 02c07d2a86f6f585324f775a72f0706afe8e3569 (diff) | |
download | openttd-e9e4ba822215abdcd5403dfd1517c52a631acb3a.tar.xz |
(svn r7592) -Feature: Add support for tractive effort to 'realistic' acceleration.
Diffstat (limited to 'newgrf.c')
-rw-r--r-- | newgrf.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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(); } + |