(svn r22960) -Feature: Allow depots, standard roadstops and airports on steep slopes.

This commit is contained in:
frosch
2011-09-25 13:35:17 +00:00
parent 035420f318
commit 1df095f114
6 changed files with 30 additions and 37 deletions

View File

@@ -168,7 +168,7 @@ void UpdateObjectColours(const Company *c)
}
}
extern CommandCost CheckBuildableTile(TileIndex tile, uint invalid_dirs, int &allowed_z, bool check_bridge);
extern CommandCost CheckBuildableTile(TileIndex tile, uint invalid_dirs, int &allowed_z, bool allow_steep, bool check_bridge);
static CommandCost ClearTile_Object(TileIndex tile, DoCommandFlag flags);
/**
@@ -238,7 +238,7 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
}
if (callback == CALLBACK_FAILED) {
cost.AddCost(CheckBuildableTile(t, 0, allowed_z, false));
cost.AddCost(CheckBuildableTile(t, 0, allowed_z, false, false));
} else if (callback != 0) {
/* The meaning of bit 10 is inverted in the result of this callback. */
return GetErrorMessageFromLocationCallbackResult(ToggleBit(callback, 10), spec->grf_prop.grffile->grfid, STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);