From 67161506ad98a7636d3c9f141b5595481d079e93 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 5 Jan 2005 13:32:03 +0000 Subject: (svn r1386) Move TileIndexDiff to map.h Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir() --- map.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'map.c') diff --git a/map.c b/map.c index 1c349e40f..b67355ecf 100644 --- a/map.c +++ b/map.c @@ -14,3 +14,10 @@ byte _map3_hi [MAP_SIZE]; byte _map_owner [MAP_SIZE]; uint16 _map2 [MAP_SIZE]; byte _map_extra_bits [MAP_SIZE / 4]; + +const TileIndexDiff _tileoffs_by_dir[4] = { + TILE_XY(-1, 0), + TILE_XY(0, 1), + TILE_XY(1, 0), + TILE_XY(0, -1), +}; -- cgit v1.2.3-54-g00ecf