From 9218c56cde6c8681bf83b8d26332a2b391692eb1 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Thu, 7 Jul 2011 14:16:22 +0000 Subject: (svn r22639) -Feature: [NewGRF] Support for ship props 14/15 (ocean/canal speed fraction). --- src/newgrf.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/newgrf.cpp') 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 -- cgit v1.2.3-54-g00ecf