mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 18:25:16 +01:00
Move Pause, PeepSpawn, Player, TileModify game actions to GameActions namespace
This commit is contained in:
@@ -239,7 +239,7 @@ namespace OpenRCT2::Scripting
|
||||
if (index < numPlayers)
|
||||
{
|
||||
auto playerId = NetworkGetPlayerID(index);
|
||||
auto kickPlayerAction = PlayerKickAction(playerId);
|
||||
auto kickPlayerAction = GameActions::PlayerKickAction(playerId);
|
||||
GameActions::Execute(&kickPlayerAction);
|
||||
}
|
||||
}
|
||||
@@ -248,7 +248,7 @@ namespace OpenRCT2::Scripting
|
||||
auto index = NetworkGetPlayerIndex(id);
|
||||
if (index != -1)
|
||||
{
|
||||
auto kickPlayerAction = PlayerKickAction(id);
|
||||
auto kickPlayerAction = GameActions::PlayerKickAction(id);
|
||||
GameActions::Execute(&kickPlayerAction);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user