diff options
author | tron <tron@openttd.org> | 2005-01-29 19:45:14 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-29 19:45:14 +0000 |
commit | 3a89108a55b6ee45550ed8b5e01434b51c2f6995 (patch) | |
tree | 911339d12234fdbe85e78c906881ba0d7989b09c /map.h | |
parent | 752b3f0dd614217d68f361e2d0b2cc599a37c860 (diff) | |
download | openttd-3a89108a55b6ee45550ed8b5e01434b51c2f6995.tar.xz |
(svn r1722) -Feature: Bigger maps - anyone?
Diffstat (limited to 'map.h')
-rw-r--r-- | map.h | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -8,13 +8,15 @@ #define TILE_MASK(x) ((x) & ((1 << (MapLogX() + MapLogY())) - 1)) -extern byte _map_type_and_height[]; -extern byte _map5[]; -extern byte _map3_lo[]; -extern byte _map3_hi[]; -extern byte _map_owner[]; -extern uint16 _map2[]; -extern byte _map_extra_bits[]; +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; + +void InitMap(uint log_x, uint log_y); // binary logarithm of the map size, try to avoid using this one static inline uint MapLogX(void) { extern uint _map_log_x; return _map_log_x; } |