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 | bcff0ab9320a2d4826d42135a674fac4e06a6f9d (patch) | |
tree | 294d2e8a0c3b227b0a8b5baf6e113d2043432d81 /town_cmd.c | |
parent | b12b10c34336316b3b60547947faf9f1ac02efde (diff) | |
download | openttd-bcff0ab9320a2d4826d42135a674fac4e06a6f9d.tar.xz |
(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[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 3c0c357e3..5c40cbf11 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -1410,7 +1410,7 @@ void DeleteTown(Town *t) DoCommandByTile(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); } } - } while (++tile != TILES_X * TILES_Y); + } while (++tile != MapSize()); t->xy = 0; DeleteName(t->townnametype); |