From 70d644194b4b010383b4a5a264370e2cb291b693 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 23 Apr 2008 09:42:33 +0000 Subject: Replace the dire lajatang with the cloak of Starlight (rElec, rC+, EV+4, Stlth-). I already added a new tile, which looks rather atrocious, I think. The dire lajatang tile is now used for any branded lajatang. Also renamed a few tile files. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4527 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/database.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/database.cc') diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc index 140051b4db..461e401d80 100644 --- a/crawl-ref/source/database.cc +++ b/crawl-ref/source/database.cc @@ -596,13 +596,16 @@ std::string getLongDescription(const std::string &key, bool noquote) if (!DescriptionDB.get()) return (""); + std::string result = ""; if (noquote) { - return _query_database(DescriptionDB.get(), key + " noquote", - true, true); + result = _query_database(DescriptionDB.get(), key + " noquote", + true, true); } + if (result.empty()) + result = _query_database(DescriptionDB.get(), key, true, true); - return _query_database(DescriptionDB.get(), key, true, true); + return result; } std::vector getLongDescKeysByRegex(const std::string ®ex, -- cgit v1.2.3-54-g00ecf