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 /ttd.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 'ttd.c')
-rw-r--r-- | ttd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |