summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-07 17:02:43 +0000
committertron <tron@openttd.org>2005-01-07 17:02:43 +0000
commit7ca6b2b8b0d6f66966fa2ff01e3e9961314dfcc4 (patch)
treee4137b60a824b45ce09f668d58520e36dba10256 /smallmap_gui.c
parentf5c33e50733c46cee14e84ade6da0c171d96064b (diff)
downloadopenttd-7ca6b2b8b0d6f66966fa2ff01e3e9961314dfcc4.tar.xz
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c
index a8afa85c8..e7073eede 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -750,8 +750,8 @@ skip_column:
if (t->xy != 0) {
// Remap the town coordinate
Point pt = RemapCoords(
- (int)(GET_TILE_X(t->xy)*16 - WP(w,smallmap_d).scroll_x) >> 4,
- (int)(GET_TILE_Y(t->xy)*16 - WP(w,smallmap_d).scroll_y) >> 4,
+ (int)(TileX(t->xy) * 16 - WP(w,smallmap_d).scroll_x) >> 4,
+ (int)(TileY(t->xy) * 16 - WP(w,smallmap_d).scroll_y) >> 4,
0);
x = pt.x - WP(w,smallmap_d).subscroll + 3 - (t->sign.width_2 >> 1);
y = pt.y;