mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Receive CoordsXYZ by const ref instead of copy
This commit is contained in:
@@ -3293,7 +3293,7 @@ CoordsXYZ network_get_player_last_action_coord(uint32_t index)
|
||||
return gNetwork.player_list[index]->LastActionCoord;
|
||||
}
|
||||
|
||||
void network_set_player_last_action_coord(uint32_t index, CoordsXYZ coord)
|
||||
void network_set_player_last_action_coord(uint32_t index, const CoordsXYZ& coord)
|
||||
{
|
||||
if (index < gNetwork.player_list.size())
|
||||
{
|
||||
@@ -3951,7 +3951,7 @@ CoordsXYZ network_get_player_last_action_coord(uint32_t index)
|
||||
{
|
||||
return { 0, 0, 0 };
|
||||
}
|
||||
void network_set_player_last_action_coord(uint32_t index, CoordsXYZ coord)
|
||||
void network_set_player_last_action_coord(uint32_t index, const CoordsXYZ& coord)
|
||||
{
|
||||
}
|
||||
uint32_t network_get_player_commands_ran(uint32_t index)
|
||||
|
||||
Reference in New Issue
Block a user