mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 05:23:04 +01:00
Move gMapSize to GameState_t
This commit is contained in:
@@ -205,8 +205,9 @@ namespace Editor
|
||||
*/
|
||||
static void SetAllLandOwned()
|
||||
{
|
||||
MapRange range = { 2 * COORDS_XY_STEP, 2 * COORDS_XY_STEP, (gMapSize.x - 3) * COORDS_XY_STEP,
|
||||
(gMapSize.y - 3) * COORDS_XY_STEP };
|
||||
auto& gameState = GetGameState();
|
||||
MapRange range = { 2 * COORDS_XY_STEP, 2 * COORDS_XY_STEP, (gameState.MapSize.x - 3) * COORDS_XY_STEP,
|
||||
(gameState.MapSize.y - 3) * COORDS_XY_STEP };
|
||||
auto landSetRightsAction = LandSetRightsAction(range, LandSetRightSetting::SetForSale);
|
||||
landSetRightsAction.SetFlags(GAME_COMMAND_FLAG_NO_SPEND);
|
||||
GameActions::Execute(&landSetRightsAction);
|
||||
|
||||
Reference in New Issue
Block a user