summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-07-07 14:16:22 +0000
committermichi_cc <michi_cc@openttd.org>2011-07-07 14:16:22 +0000
commit9218c56cde6c8681bf83b8d26332a2b391692eb1 (patch)
treeff75c6ee2942508296bc44d62018fc10467f9e47 /src/newgrf.cpp
parent662a0a9cd31111f9507e6d0706c3d5e9b7a425cc (diff)
downloadopenttd-9218c56cde6c8681bf83b8d26332a2b391692eb1.tar.xz
(svn r22639) -Feature: [NewGRF] Support for ship props 14/15 (ocean/canal speed fraction).
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index ffd8e37fd..ba9aab9f0 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1194,10 +1194,11 @@ static ChangeInfoResult ShipVehicleChangeInfo(uint engine, int numinfo, int prop
break;
case 0x14: // Ocean speed fraction
+ svi->ocean_speed_frac = buf->ReadByte();
+ break;
+
case 0x15: // Canal speed fraction
- /** @todo Speed fractions for ships on oceans and canals */
- buf->ReadByte();
- ret = CIR_UNHANDLED;
+ svi->canal_speed_frac = buf->ReadByte();
break;
case 0x16: // Retire vehicle early