map.c
changeset 863 8d09f9331a80
parent 817 4f9377b7fd2b
child 900 feed1801fd35
equal deleted inserted replaced
862:d7e52ef99f42 863:8d09f9331a80
     3 #include "map.h"
     3 #include "map.h"
     4 
     4 
     5 uint _map_log_x = TILE_X_BITS;
     5 uint _map_log_x = TILE_X_BITS;
     6 uint _map_log_y = TILE_Y_BITS;
     6 uint _map_log_y = TILE_Y_BITS;
     7 
     7 
     8 byte   _map_type_and_height [TILES_X * TILES_Y];
     8 #define MAP_SIZE ((1 << TILE_X_BITS) * (1 << TILE_Y_BITS))
     9 byte   _map5                [TILES_X * TILES_Y];
     9 
    10 byte   _map3_lo             [TILES_X * TILES_Y];
    10 byte   _map_type_and_height [MAP_SIZE];
    11 byte   _map3_hi             [TILES_X * TILES_Y];
    11 byte   _map5                [MAP_SIZE];
    12 byte   _map_owner           [TILES_X * TILES_Y];
    12 byte   _map3_lo             [MAP_SIZE];
    13 uint16 _map2                [TILES_X * TILES_Y];
    13 byte   _map3_hi             [MAP_SIZE];
    14 byte   _map_extra_bits      [TILES_X * TILES_Y / 4];
    14 byte   _map_owner           [MAP_SIZE];
       
    15 uint16 _map2                [MAP_SIZE];
       
    16 byte   _map_extra_bits      [MAP_SIZE / 4];