mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 02:35:46 +01:00
Fix warning
This commit is contained in:
committed by
Michał Janiszewski
parent
feef3d98da
commit
8adcbd6e35
@@ -81,13 +81,13 @@ extern "C"
|
||||
{
|
||||
auto gameAction = SetParkEntranceFeeAction();
|
||||
gameAction.Fee = (money16)value;
|
||||
GameActions::Execute(&gameAction, 0, nullptr);
|
||||
GameActions::Execute(&gameAction);
|
||||
}
|
||||
|
||||
void game_command_set_park_entrance_fee(int *eax, int *ebx, int *ecx, int *edx, int *esi, int *edi, int *ebp)
|
||||
{
|
||||
auto gameAction = SetParkEntranceFeeAction();
|
||||
gameAction.Fee = (*edi & 0xFFFF);
|
||||
GameActions::Execute(&gameAction, 0, nullptr);
|
||||
GameActions::Execute(&gameAction);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2065,7 +2065,7 @@ void Network::Client_Handle_GAME_ACTION(NetworkConnection& connection, NetworkPa
|
||||
uint8 playerid;
|
||||
packet >> tick >> type >> playerid;
|
||||
MemoryStream stream;
|
||||
uint16 size = packet.Size - packet.BytesRead;
|
||||
size_t size = packet.Size - packet.BytesRead;
|
||||
stream.WriteArray(packet.Read(size), size);
|
||||
stream.SetPosition(0);
|
||||
GameCommand gc = GameCommand(tick, type, stream, playerid);
|
||||
@@ -2131,7 +2131,7 @@ void Network::Server_Handle_GAME_ACTION(NetworkConnection& connection, NetworkPa
|
||||
// Run game command, and if it is successful send to clients
|
||||
auto ga = GameActions::Create(commandType);
|
||||
MemoryStream stream;
|
||||
uint16 size = packet.Size - packet.BytesRead;
|
||||
size_t size = packet.Size - packet.BytesRead;
|
||||
stream.WriteArray(packet.Read(size), size);
|
||||
stream.SetPosition(0);
|
||||
uint32 flags = stream.ReadValue<uint32>();
|
||||
|
||||
Reference in New Issue
Block a user