diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -31,7 +31,13 @@ main(void) init(); vp = init_viewport(240, 160, 8); - map = map_get("data/maps/forest1-8bit.tmx"); + map = map_get(MAPSDIR "/forest1-8bit.tmx"); + if (map == NULL) { + map = map_get("data/maps/forest1-8bit.tmx"); + } + if (map == NULL) { + err(1, "Where's the map, George?"); + } a = area_new(map); for (i = 0; i < 256; ++i) { |