2004-12-15 22:18:54 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
#include "ttd.h"
|
|
|
|
#include "map.h"
|
|
|
|
|
2004-12-16 12:30:13 +00:00
|
|
|
uint _map_log_x = TILE_X_BITS;
|
|
|
|
uint _map_log_y = TILE_Y_BITS;
|
|
|
|
|
2005-01-03 18:59:58 +00:00
|
|
|
#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];
|
2005-01-05 13:32:03 +00:00
|
|
|
|
2005-01-06 11:39:00 +00:00
|
|
|
const TileIndexDiffC _tileoffs_by_dir[] = {
|
|
|
|
{-1, 0},
|
|
|
|
{ 0, 1},
|
|
|
|
{ 1, 0},
|
|
|
|
{ 0, -1}
|
2005-01-05 13:32:03 +00:00
|
|
|
};
|