From c0702318d27d327e449b7f954dd15c0e46403f5c Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 3 Jan 2005 18:59:58 +0000 Subject: (svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY] --- ttd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ttd.c') diff --git a/ttd.c b/ttd.c index 242b9c729..f07afce41 100644 --- a/ttd.c +++ b/ttd.c @@ -1082,7 +1082,7 @@ void GameLoop() ShowScreenshotResult(MakeScreenshot()); break; case 2: // make large screenshot - ShowScreenshotResult(MakeWorldScreenshot(-(int)MapMaxX() * 32, 0, MapMaxX() * 64, TILES_Y * 32, 0)); + ShowScreenshotResult(MakeWorldScreenshot(-(int)MapMaxX() * 32, 0, MapMaxX() * 64, MapSizeY() * 32, 0)); break; } } @@ -1150,7 +1150,7 @@ void ConvertTownOwner() { uint tile; - for(tile=0; tile!=TILES_X * TILES_Y; tile++) { + for (tile = 0; tile != MapSize(); tile++) { if (IS_TILETYPE(tile, MP_STREET)) { if ((_map5[tile] & 0xF0) == 0x10 && _map3_lo[tile] & 0x80) _map3_lo[tile] = OWNER_TOWN; -- cgit v1.2.3-54-g00ecf