summaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.c b/src/map.c
index 05c4862..015b3a6 100644
--- a/src/map.c
+++ b/src/map.c
@@ -62,7 +62,7 @@ map_get(int x, int y, unsigned int type)
return (type != TILE_SPIKE);
for (unsigned int i = 0; i < map->numlayers; i++) {
const unsigned int tile = map->layers[i]
- .data[x + y * map_width()];
+ .tilelayer.data[x + y * map_width()];
if (tile_type(tile) == type)
return true;
}
@@ -87,7 +87,7 @@ draw_layer(const Tiled2cLayer *layer)
for (int y = 0; y < map_height(); y++)
for (int x = 0; x < map_width(); x++) {
const unsigned tile =
- layer->data[x + y * map_width()];
+ layer->tilelayer.data[x + y * map_width()];
if (tile == 0)
continue;
const unsigned vtile = tile_visual(tile);