(svn r22639) -Feature: [NewGRF] Support for ship props 14/15 (ocean/canal speed fraction).

This commit is contained in:
michi_cc
2011-07-07 14:16:22 +00:00
parent 662a0a9cd3
commit 9218c56cde
3 changed files with 17 additions and 4 deletions

View File

@@ -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