1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Fix #20737: Spent money underflows when getting refunds (#20765)

This commit is contained in:
Hielke Morsink
2023-09-07 08:19:27 +02:00
committed by GitHub
parent cb51d63dc8
commit 37caebdde9
6 changed files with 23 additions and 3 deletions

View File

@@ -3352,6 +3352,14 @@ std::string NetworkGetPlayerPublicKeyHash(uint32_t id)
return {};
}
void NetworkIncrementPlayerNumCommands(uint32_t playerIndex)
{
auto& network = OpenRCT2::GetContext()->GetNetwork();
Guard::IndexInRange(playerIndex, network.player_list);
network.player_list[playerIndex]->IncrementNumCommands();
}
void NetworkAddPlayerMoneySpent(uint32_t index, money64 cost)
{
auto& network = OpenRCT2::GetContext()->GetNetwork();
@@ -4090,6 +4098,9 @@ std::string NetworkGetPlayerPublicKeyHash(uint32_t id)
{
return {};
}
void NetworkIncrementPlayerNumCommands(uint32_t playerIndex)
{
}
void NetworkAddPlayerMoneySpent(uint32_t index, money64 cost)
{
}