diff options
author | peter1138 <peter1138@openttd.org> | 2010-03-03 18:58:32 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2010-03-03 18:58:32 +0000 |
commit | c3d3e7d3831f288120d3bc90d7dba6add01b1e7c (patch) | |
tree | 51ea4ed13c3dc21dcdb6a01c448a910c736b1456 /src/newgrf.cpp | |
parent | 4963296f03dc6948ee25aedaae65c53bb6341cb2 (diff) | |
download | openttd-c3d3e7d3831f288120d3bc90d7dba6add01b1e7c.tar.xz |
(svn r19306) -Change: Railtype cost factor from byte to word value
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 512c949a6..4ca71a90f 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2572,7 +2572,7 @@ static ChangeInfoResult RailTypeChangeInfo(uint id, int numinfo, int prop, ByteR break; case 0x13: // Construction cost factor - rti->cost_multiplier = buf->ReadByte(); + rti->cost_multiplier = buf->ReadWord(); break; case 0x14: // Speed limit @@ -2623,6 +2623,7 @@ static ChangeInfoResult RailTypeReserveInfo(uint id, int numinfo, int prop, Byte case 0x0B: // Build window caption case 0x0C: // Autoreplace text case 0x0D: // New loco + case 0x13: // Construction cost case 0x14: // Speed limit buf->ReadWord(); break; @@ -2635,7 +2636,6 @@ static ChangeInfoResult RailTypeReserveInfo(uint id, int numinfo, int prop, Byte case 0x10: // Rail Type flags case 0x11: // Curve speed advantage case 0x12: // Station graphic - case 0x13: // Construction cost case 0x15: // Acceleration model buf->ReadByte(); break; |