mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
This commit is contained in:
committed by
Michał Janiszewski
parent
c845924956
commit
2da01caa1e
@@ -253,10 +253,13 @@ namespace GameActions
|
||||
{
|
||||
NetworkPlayerId_t playerId = action->GetPlayer();
|
||||
|
||||
network_set_player_last_action(network_get_player_index(playerId.id), action->GetType());
|
||||
int32_t playerIndex = network_get_player_index(playerId.id);
|
||||
Guard::Assert(playerIndex != -1);
|
||||
|
||||
network_set_player_last_action(playerIndex, action->GetType());
|
||||
if (result->Cost != 0)
|
||||
{
|
||||
network_add_player_money_spent(playerId.id, result->Cost);
|
||||
network_add_player_money_spent(playerIndex, result->Cost);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user