Files
@ r926:fcf36609eb94
Branch filter:
Location: cpp/openttd-patchpack/source/map.c - annotation
r926:fcf36609eb94
553 B
text/x-c
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
r679:3a7b08cc8504 r679:3a7b08cc8504 r679:3a7b08cc8504 r679:3a7b08cc8504 r689:c33ae44e7bfc r689:c33ae44e7bfc r689:c33ae44e7bfc r863:a3262138da98 r863:a3262138da98 r863:a3262138da98 r863:a3262138da98 r863:a3262138da98 r863:a3262138da98 r863:a3262138da98 r863:a3262138da98 r863:a3262138da98 r900:6c526ed4f41b r909:898755bd4512 r909:898755bd4512 r909:898755bd4512 r909:898755bd4512 r909:898755bd4512 r900:6c526ed4f41b | #include "stdafx.h"
#include "ttd.h"
#include "map.h"
uint _map_log_x = TILE_X_BITS;
uint _map_log_y = TILE_Y_BITS;
#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];
const TileIndexDiffC _tileoffs_by_dir[] = {
{-1, 0},
{ 0, 1},
{ 1, 0},
{ 0, -1}
};
|