diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-08 00:51:16 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-08 00:51:16 +0000 |
commit | e94375e1a0ecdbfa3032609c29a42eb071d3682a (patch) | |
tree | 5661093954d268b21c9c05863536f1ee272bd2f7 /crawl-ref/source/files.cc | |
parent | 6a9d2c4e4557186178402684f6c443b18d4f1a82 (diff) | |
download | crawl-ref-e94375e1a0ecdbfa3032609c29a42eb071d3682a.tar.gz crawl-ref-e94375e1a0ecdbfa3032609c29a42eb071d3682a.zip |
Apply tutorial fixes as well as the macro/wininit path to 0.4.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6448 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index c906a36123..f00a8cf58a 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -527,19 +527,19 @@ std::string datafile_path(std::string basename, #endif for (unsigned b = 0, size = bases.size(); b < size; ++b) - { for (unsigned p = 0; p < sizeof(prefixes) / sizeof(*prefixes); ++p) { std::string name = bases[b] + prefixes[p] + basename; if (file_exists(name)) return (name); } - } // Die horribly. if (croak_on_fail) + { end(1, false, "Cannot find data file '%s' anywhere, aborting\n", basename.c_str()); + } return (""); } |