diff options
author | tron <tron@openttd.org> | 2005-01-03 18:59:58 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-03 18:59:58 +0000 |
commit | c0702318d27d327e449b7f954dd15c0e46403f5c (patch) | |
tree | 294d2e8a0c3b227b0a8b5baf6e113d2043432d81 /viewport.c | |
parent | d382463f8afad00bc944c3057c2e9a0ac90e721c (diff) | |
download | openttd-c0702318d27d327e449b7f954dd15c0e46403f5c.tar.xz |
(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]
Diffstat (limited to 'viewport.c')
-rw-r--r-- | viewport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/viewport.c b/viewport.c index 5b1712b2c..05e461431 100644 --- a/viewport.c +++ b/viewport.c @@ -1376,7 +1376,8 @@ void MarkTileDirty(int x, int y) { int z = 0; Point pt; - if (IS_INT_INSIDE(x, 0, TILES_X*16) && IS_INT_INSIDE(y, 0, TILES_Y*16)) + if (IS_INT_INSIDE(x, 0, MapSizeX() * 16) && + IS_INT_INSIDE(y, 0, MapSizeY() * 16)) z = GetTileZ(TILE_FROM_XY(x,y)); pt = RemapCoords(x, y, z); |