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 /station_cmd.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 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c index 88d4e47f0..cad045458 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -113,7 +113,7 @@ static bool CheckStationSpreadOut(Station *st, uint tile, int w, int h) uint y2 = y1 + h - 1; uint t; - for(i=0; i!=TILES_X*TILES_Y; i++) { + for (i = 0; i != MapSize(); i++) { if (IS_TILETYPE(i, MP_STATION) && _map2[i] == station_index) { t = GET_TILE_X(i); if (t < x1) x1 = t; |