diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-03 21:55:23 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-03 21:55:23 +0000 |
commit | 00bb42dc5e7570932126361340420b339c0e265c (patch) | |
tree | c24b1ce518515a954f05185e80117301d42b9fb3 /crawl-ref/source/format.cc | |
parent | 2f988e26917a2fd048d66f16117f4f7627a80dd3 (diff) | |
download | crawl-ref-00bb42dc5e7570932126361340420b339c0e265c.tar.gz crawl-ref-00bb42dc5e7570932126361340420b339c0e265c.zip |
Coloured power display. This is, for now, a rather extreme hack.
Note that some spells (e.g. Apportation) have no actual power limits,
so they will always be 'red'. Suggestions welcome.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1736 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r-- | crawl-ref/source/format.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc index 9eb82cb8d3..2b77fc0bab 100644 --- a/crawl-ref/source/format.cc +++ b/crawl-ref/source/format.cc @@ -315,6 +315,11 @@ void formatted_string::fs_op::display() const } } +void formatted_string::swap(formatted_string& other) +{ + ops.swap(other.ops); +} + int count_linebreaks(const formatted_string& fs) { std::string::size_type where = 0; |