src/town_cmd.cpp
changeset 7549 53483e249123
parent 7545 d44e19c5671e
child 7566 a8dd64b03224
equal deleted inserted replaced
7548:3a679b6e8b30 7549:53483e249123
  1926 static bool DoBuildStatueOfCompany(TileIndex tile, TownID town_id)
  1926 static bool DoBuildStatueOfCompany(TileIndex tile, TownID town_id)
  1927 {
  1927 {
  1928 	PlayerID old;
  1928 	PlayerID old;
  1929 	CommandCost r;
  1929 	CommandCost r;
  1930 
  1930 
  1931 	if (GetTileSlope(tile, NULL) != SLOPE_FLAT) return false;
  1931 	/* Statues can be build on slopes, just like houses. Only the steep slopes is a no go. */
       
  1932 	if (IsSteepSlope(GetTileSlope(tile, NULL))) return false;
  1932 
  1933 
  1933 	if (!IsTileType(tile, MP_HOUSE) &&
  1934 	if (!IsTileType(tile, MP_HOUSE) &&
  1934 			!IsTileType(tile, MP_CLEAR) &&
  1935 			!IsTileType(tile, MP_CLEAR) &&
  1935 			!IsTileType(tile, MP_TREES)) {
  1936 			!IsTileType(tile, MP_TREES)) {
  1936 		return false;
  1937 		return false;