summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-03-31 15:10:24 +0000
committerskidd13 <skidd13@openttd.org>2008-03-31 15:10:24 +0000
commit4cc6140619a9988c1e16ff82bf7edb601ce0ed0c (patch)
tree9b6dd6eaf1527135253d7c87a4ce51747f45b477 /src/newgrf_house.cpp
parenta0895d57fa4cc30e49bef6a689b1a73cf4c3d02a (diff)
downloadopenttd-4cc6140619a9988c1e16ff82bf7edb601ce0ed0c.tar.xz
(svn r12513) -Codechange: rename OriginalTileRandomiser something more descriptive
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index e59097f70..3eab86df4 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -216,7 +216,7 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
switch (variable) {
/* Construction stage. */
- case 0x40: return (IsTileType(tile, MP_HOUSE) ? GetHouseBuildingStage(tile) : 0) | OriginalTileRandomiser(TileX(tile), TileY(tile)) << 2;
+ case 0x40: return (IsTileType(tile, MP_HOUSE) ? GetHouseBuildingStage(tile) : 0) | TileHash2Bit(TileX(tile), TileY(tile)) << 2;
/* Building age. */
case 0x41: return Clamp(_cur_year - GetHouseConstructionYear(tile), 0, 0xFF);
@@ -340,7 +340,7 @@ void DrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte stage, Ho
pal = HasBit(callback, 14) ? GB(callback, 0, 8) + SPR_2CCMAP_BASE : callback;
}
} else {
- pal = hs->random_colour[OriginalTileRandomiser(ti->x, ti->y)] + PALETTE_RECOLOR_START;
+ pal = hs->random_colour[TileHash2Bit(ti->x, ti->y)] + PALETTE_RECOLOR_START;
}
}
} else {