From 44099829379372be44a0d5afad5ec5fdf4200b10 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 19 Jul 2009 21:42:46 +0000 Subject: Fix tiles compilation if save files are not zipped. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10339 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/files.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/files.cc') diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 2ee53f8df8..2d0a20f7e4 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -703,6 +703,11 @@ std::vector find_saved_characters() #ifdef USE_TILE if (Options.tile_menu_icons) { + #ifndef LOAD_UNPACKAGE_CMD + std::string basename = + filename.substr(0, + filename.length() - strlen(".sav")); + #endif const std::string dollname = basename + ".tdl"; #ifdef LOAD_UNPACKAGE_CMD snprintf( cmd_buff, sizeof(cmd_buff), -- cgit v1.2.3-54-g00ecf