diff options
author | tron <tron@openttd.org> | 2005-01-07 17:02:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-07 17:02:43 +0000 |
commit | 7ca6b2b8b0d6f66966fa2ff01e3e9961314dfcc4 (patch) | |
tree | e4137b60a824b45ce09f668d58520e36dba10256 /town_cmd.c | |
parent | f5c33e50733c46cee14e84ade6da0c171d96064b (diff) | |
download | openttd-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 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/town_cmd.c b/town_cmd.c index b7a142ad0..eb3f11a68 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -186,7 +186,7 @@ void UpdateTownVirtCoord(Town *t) Point pt; MarkTownSignDirty(t); - pt = RemapCoords2(GET_TILE_X(t->xy)*16, GET_TILE_Y(t->xy)*16); + pt = RemapCoords2(TileX(t->xy) * 16, TileY(t->xy) * 16); SetDParam(0, t->townnametype); SetDParam(1, t->townnameparts); SetDParam(2, t->population); |