diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-20 15:01:18 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-20 15:01:18 +0000 |
commit | 3548833cfbab7a46fe339542183fa65f276ea167 (patch) | |
tree | f8377bf76c279646c2654b95ec504ed94963a240 /crawl-ref/source/clua.cc | |
parent | bc1869c1a3334676d5cc99df90f7f9b24426274d (diff) | |
download | crawl-ref-3548833cfbab7a46fe339542183fa65f276ea167.tar.gz crawl-ref-3548833cfbab7a46fe339542183fa65f276ea167.zip |
Added classic_item_colours option to go back to 0.1.x item colours. The option
is not retroactive, it only affects items that are created after the option is
set.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1072 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index ce8dcd358a..ac7c749c41 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -2268,6 +2268,12 @@ bool lua_text_pattern::translate() const { if (translated || !isvalid) return false; + + if (pattern.find("]]") != std::string::npos + || pattern.find("[[") != std::string::npos) + { + return (false); + } std::string textp; std::string luafn; |