From 397b9a764b435a7b8c410bd9edc445009a7a9564 Mon Sep 17 00:00:00 2001 From: Dominik Geyer Date: Wed, 1 Oct 2008 17:16:22 +0000 Subject: data-dir autodetection; data-dir override; compiled-in data-dir; messagebox if detection fails; does chdir into data-dir --- src/game/client/components/mapimages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/client/components/mapimages.cpp') diff --git a/src/game/client/components/mapimages.cpp b/src/game/client/components/mapimages.cpp index d13524cd..9dc2447a 100644 --- a/src/game/client/components/mapimages.cpp +++ b/src/game/client/components/mapimages.cpp @@ -31,7 +31,7 @@ void MAPIMAGES::on_reset() { char buf[256]; char *name = (char *)map_get_data(img->image_name); - str_format(buf, sizeof(buf), "data/mapres/%s.png", name); + str_format(buf, sizeof(buf), "mapres/%s.png", name); textures[i] = gfx_load_texture(buf, IMG_AUTO, 0); } else -- cgit 1.4.1