From ba1fc280e3b0c13baedc2ef54dabb2deec41c818 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 7 Nov 2009 22:47:54 +0000 Subject: (svn r18005) -Codechange: Convert the Prices struct into an array and an enum. --- src/unmovable_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unmovable_cmd.cpp') diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index 0bbce5952..93ac08998 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -500,7 +500,7 @@ static CommandCost TerraformTile_Unmovable(TileIndex tile, DoCommandFlag flags, if (IsOwnedLand(tile) && CheckTileOwnership(tile)) return CommandCost(); if (AutoslopeEnabled() && (IsStatue(tile) || IsCompanyHQ(tile))) { - if (!IsSteepSlope(tileh_new) && (z_new + GetSlopeMaxZ(tileh_new) == GetTileMaxZ(tile))) return CommandCost(EXPENSES_CONSTRUCTION, _price.terraform); + if (!IsSteepSlope(tileh_new) && (z_new + GetSlopeMaxZ(tileh_new) == GetTileMaxZ(tile))) return CommandCost(EXPENSES_CONSTRUCTION, _price[PR_TERRAFORM]); } return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); -- cgit v1.2.3-54-g00ecf