diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-01-13 15:47:34 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-01-13 20:50:59 +0100 |
commit | 783270295ccc3eeb7fd3b5b902582f9cd8f2415e (patch) | |
tree | 76b1fcd017ce9c101bf6bac944cf649e41b1ed9e /crawl-ref/source/tilereg-title.cc | |
parent | 079296e9a4da73fbd8ecdd9c0f810d193c838998 (diff) | |
download | crawl-ref-783270295ccc3eeb7fd3b5b902582f9cd8f2415e.tar.gz crawl-ref-783270295ccc3eeb7fd3b5b902582f9cd8f2415e.zip |
Title images: search all title_* files instead of just tile_xx.png.
Now we can give them proper names.
Diffstat (limited to 'crawl-ref/source/tilereg-title.cc')
-rw-r--r-- | crawl-ref/source/tilereg-title.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crawl-ref/source/tilereg-title.cc b/crawl-ref/source/tilereg-title.cc index f1af451251..9f23e5f179 100644 --- a/crawl-ref/source/tilereg-title.cc +++ b/crawl-ref/source/tilereg-title.cc @@ -16,13 +16,7 @@ static const std::string _get_title_image() { - std::vector<std::string> files; - for (int i = 0; i < 100; ++i) - { - std::string f = make_stringf("title%02d.png", i); - if (datafile_path(f, false) != "") - files.push_back(f); - } + std::vector<std::string> files = get_title_files(); return files[random2(files.size())]; } |