Merge branch 'master' into jgrpp
# Conflicts: # src/cheat_gui.cpp # src/command.cpp # src/command_func.h # src/company_base.h # src/debug.cpp # src/debug.h # src/economy.cpp # src/engine_type.h # src/graph_gui.cpp # src/misc_cmd.cpp # src/misc_cmd.h # src/network/core/os_abstraction.cpp # src/openttd.cpp # src/saveload/saveload.cpp # src/saveload/saveload.h # src/settings_type.h # src/ship_cmd.cpp # src/stdafx.h # src/tests/bitmath_func.cpp # src/town_cmd.cpp # src/town_gui.cpp
This commit is contained in:
@@ -1542,7 +1542,7 @@ static ChangeInfoResult ShipVehicleChangeInfo(uint engine, int numinfo, int prop
|
||||
svi->cost_factor = buf->ReadByte();
|
||||
break;
|
||||
|
||||
case PROP_SHIP_SPEED: // 0x0B Speed (1 unit is 0.5 km-ish/h)
|
||||
case PROP_SHIP_SPEED: // 0x0B Speed (1 unit is 0.5 km-ish/h). Use 0x23 to achieve higher speeds.
|
||||
svi->max_speed = buf->ReadByte();
|
||||
break;
|
||||
|
||||
@@ -1671,6 +1671,14 @@ static ChangeInfoResult ShipVehicleChangeInfo(uint engine, int numinfo, int prop
|
||||
SB(ei->callback_mask, 8, 8, buf->ReadByte());
|
||||
break;
|
||||
|
||||
case 0x23: // Speed (1 unit is 0.5 km-ish/h)
|
||||
svi->max_speed = buf->ReadWord();
|
||||
break;
|
||||
|
||||
case 0x24: // Acceleration (1 unit is 0.5 km-ish/h per tick)
|
||||
svi->acceleration = std::max<uint8_t>(1, buf->ReadByte());
|
||||
break;
|
||||
|
||||
default:
|
||||
ret = CommonVehicleChangeInfo(ei, prop, mapping_entry, buf);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user