summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-08-02 14:51:35 +0000
committerterkhen <terkhen@openttd.org>2010-08-02 14:51:35 +0000
commit8203749e6858ebd0931acb13132c83796bf65e02 (patch)
tree6b3439daf6e1a52339248bd4d4319ad5aa44c53f /src/newgrf.cpp
parent5c633159caf434db5e63f2c4efb109b371300ec0 (diff)
downloadopenttd-8203749e6858ebd0931acb13132c83796bf65e02.tar.xz
(svn r20301) -Add: [NewGRF] Read air drag property from Action 0 for trains.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 8d822eed0..167aac5e6 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -702,9 +702,7 @@ static ChangeInfoResult RailVehicleChangeInfo(uint engine, int numinfo, int prop
break;
case 0x20: // Air drag
- /** @todo Air drag for trains. */
- buf->ReadByte();
- ret = CIR_UNHANDLED;
+ rvi->air_drag = buf->ReadByte();
break;
case 0x21: // Shorter vehicle