1
0
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:
Tulio Leao
2020-02-29 00:30:50 -03:00
parent 473bb4683b
commit 181eaf768d
30 changed files with 107 additions and 98 deletions

View File

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