mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 00:34:46 +01:00
@@ -118,15 +118,16 @@ namespace OpenRCT2::Scripting
|
||||
|
||||
money64 ScPark::entranceFee_get() const
|
||||
{
|
||||
return gParkEntranceFee;
|
||||
return GetGameState().ParkEntranceFee;
|
||||
}
|
||||
void ScPark::entranceFee_set(money64 value)
|
||||
{
|
||||
ThrowIfGameStateNotMutable();
|
||||
|
||||
if (gParkEntranceFee != value)
|
||||
auto& gameState = GetGameState();
|
||||
if (gameState.ParkEntranceFee != value)
|
||||
{
|
||||
gParkEntranceFee = value;
|
||||
gameState.ParkEntranceFee = value;
|
||||
WindowInvalidateByClass(WindowClass::ParkInformation);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user