diff options
author | tron <tron@openttd.org> | 2005-07-13 18:04:01 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-13 18:04:01 +0000 |
commit | 8c1d74162f1544e351ae6308cbcca06f324c2c36 (patch) | |
tree | b36523450a7bccf37ca126b6f857d1529d44c67b /map.h | |
parent | 1a1dde7c8d0cf18e49b5af7fef1368216120eed1 (diff) | |
download | openttd-8c1d74162f1544e351ae6308cbcca06f324c2c36.tar.xz |
(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
Diffstat (limited to 'map.h')
-rw-r--r-- | map.h | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -6,13 +6,17 @@ #define TILE_MASK(x) ((x) & ((1 << (MapLogX() + MapLogY())) - 1)) #define TILE_ASSERT(x) assert(TILE_MASK(x) == (x)); -extern byte *_map_type_and_height; -extern byte *_map_owner; -extern uint16 *_map2; -extern byte *_map3_lo; -extern byte *_map3_hi; -extern byte *_map5; -extern byte *_map_extra_bits; +typedef struct Tile { + byte type_height; + byte owner; + uint16 m2; + byte m3; + byte m4; + byte m5; + byte extra; +} Tile; + +extern Tile* _m; void InitMap(uint log_x, uint log_y); |