summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 8c5463e..3f20335 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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) {