summaryrefslogtreecommitdiff
path: root/src/town_map.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-04 22:15:48 +0000
committersmatz <smatz@openttd.org>2008-02-04 22:15:48 +0000
commitdbfdc5df94c56adc41763a47f4cf67f38efb87b0 (patch)
treeba8fe210dcd1b4e0a6ac42e0beb08251912db7d9 /src/town_map.h
parentb35611dae30ae37b48a8efb01245e1b1277bae2a (diff)
downloadopenttd-dbfdc5df94c56adc41763a47f4cf67f38efb87b0.tar.xz
(svn r12060) -Fix: do not clear tiles when the town won't be able to build any buildings anyway
-Fix: allow building 2x2 building on slopes if not explicitly forbidden -Fix: it was possible to build 2x1 and 1x2 buildings on slopes even if it was not allowed
Diffstat (limited to 'src/town_map.h')
-rw-r--r--src/town_map.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/town_map.h b/src/town_map.h
index cd63ae983..4960522ce 100644
--- a/src/town_map.h
+++ b/src/town_map.h
@@ -211,26 +211,6 @@ static inline void MakeHouseTile(TileIndex t, TownID tid, byte counter, byte sta
}
/**
- * Helper function for MakeHouseTile.
- * It is called for each tile of a multi-tile house.
- * Parametes are the same.
- * @param t tile index
- * @param tid Town index
- * @param counter of construction step
- * @param stage of construction (used for drawing)
- * @param type of house. Index into house specs array
- * @param random_bits required for newgrf houses
- */
-static inline void MakeTownHouse(TileIndex t, TownID tid, byte counter, byte stage, HouseID type, byte random_bits)
-{
- BuildingFlags size = GetHouseSpecs(type)->building_flags;
- MakeHouseTile(t, tid, counter, stage, type, random_bits);
- if (size & BUILDING_2_TILES_Y) MakeHouseTile(t + TileDiffXY(0, 1), tid, counter, stage, ++type, random_bits);
- if (size & BUILDING_2_TILES_X) MakeHouseTile(t + TileDiffXY(1, 0), tid, counter, stage, ++type, random_bits);
- if (size & BUILDING_HAS_4_TILES) MakeHouseTile(t + TileDiffXY(1, 1), tid, counter, stage, ++type, random_bits);
-}
-
-/**
* House Construction Scheme.
* Construction counter, for buildings under construction. Incremented on every
* periodic tile processing.