summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-10 23:31:43 +0000
committerrubidium <rubidium@openttd.org>2010-08-10 23:31:43 +0000
commit1dbd2223ad1584a7f41503966e509d4abf4ec9c2 (patch)
treed6980cb49e94de273e75f66cdba180a3552bab4d /src/town.h
parent091f8ff7315637df289d3ab7ada969193eccc68c (diff)
downloadopenttd-1dbd2223ad1584a7f41503966e509d4abf4ec9c2.tar.xz
(svn r20443) -Codechange: more TileHash to a more generic location
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/town.h b/src/town.h
index c5f8eb35c..6e3533d8d 100644
--- a/src/town.h
+++ b/src/town.h
@@ -233,36 +233,6 @@ extern const byte _town_action_costs[TACT_COUNT];
extern TownID _new_town_id;
/**
- * Calculate a hash value from a tile position
- *
- * @param x The X coordinate
- * @param y The Y coordinate
- * @return The hash of the tile
- */
-static inline uint TileHash(uint x, uint y)
-{
- uint hash = x >> 4;
- hash ^= x >> 6;
- hash ^= y >> 4;
- hash -= y >> 6;
- return hash;
-}
-
-/**
- * Get the last two bits of the TileHash
- * from a tile position.
- *
- * @see TileHash()
- * @param x The X coordinate
- * @param y The Y coordinate
- * @return The last two bits from hash of the tile
- */
-static inline uint TileHash2Bit(uint x, uint y)
-{
- return GB(TileHash(x, y), 0, 2);
-}
-
-/**
* Set the default name for a depot/waypoint
* @tparam T The type/class to make a default name for
* @param obj The object/instance we want to find the name for