diff options
Diffstat (limited to 'map.c')
-rw-r--r-- | map.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3,3 +3,11 @@ int map_size(int w, int h) { return sizeof(Map) + w * h * sizeof(Map_Tile); } + +Map_Tile* map_tiles(Map* m) { + return (Map_Tile*)&m[1]; +} + +const Map_Tile* map_tilesc(const Map* m) { + return (Map_Tile*)&m[1]; +} |