summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r--crawl-ref/source/format.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc
index 8ceea8ed91..4dd398cb0c 100644
--- a/crawl-ref/source/format.cc
+++ b/crawl-ref/source/format.cc
@@ -86,11 +86,12 @@ formatted_string formatted_string::parse_block(
formatted_string formatted_string::parse_string(
const std::string &s,
bool eot_ends_format,
- bool (*process)(const std::string &tag))
+ bool (*process)(const std::string &tag),
+ int main_colour)
{
// Safe assumption, that incoming color is LIGHTGREY
std::vector<int> colour_stack;
- colour_stack.push_back(LIGHTGREY);
+ colour_stack.push_back(main_colour);
formatted_string fs;