(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]

This commit is contained in:
tron
2005-01-03 18:59:58 +00:00
parent d382463f8a
commit c0702318d2
14 changed files with 50 additions and 50 deletions

16
map.c
View File

@@ -5,10 +5,12 @@
uint _map_log_x = TILE_X_BITS;
uint _map_log_y = TILE_Y_BITS;
byte _map_type_and_height [TILES_X * TILES_Y];
byte _map5 [TILES_X * TILES_Y];
byte _map3_lo [TILES_X * TILES_Y];
byte _map3_hi [TILES_X * TILES_Y];
byte _map_owner [TILES_X * TILES_Y];
uint16 _map2 [TILES_X * TILES_Y];
byte _map_extra_bits [TILES_X * TILES_Y / 4];
#define MAP_SIZE ((1 << TILE_X_BITS) * (1 << TILE_Y_BITS))
byte _map_type_and_height [MAP_SIZE];
byte _map5 [MAP_SIZE];
byte _map3_lo [MAP_SIZE];
byte _map3_hi [MAP_SIZE];
byte _map_owner [MAP_SIZE];
uint16 _map2 [MAP_SIZE];
byte _map_extra_bits [MAP_SIZE / 4];