diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-05-29 09:49:46 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-05-29 09:52:59 +0200 |
commit | a3f9f995d24796935547260d6e90057a56eb4a12 (patch) | |
tree | 1ef23246623ec2980afd63c8cba52d1b134295e5 /crawl-ref/source/format.cc | |
parent | ed4ea66b2dfafa863aba5091ba86f54abca4ac5e (diff) | |
download | crawl-ref-a3f9f995d24796935547260d6e90057a56eb4a12.tar.gz crawl-ref-a3f9f995d24796935547260d6e90057a56eb4a12.zip |
Don't cgotoxy a line too far down (#1591, #1604).
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r-- | crawl-ref/source/format.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc index 0ada949da1..06b8e6d1af 100644 --- a/crawl-ref/source/format.cc +++ b/crawl-ref/source/format.cc @@ -49,12 +49,13 @@ void display_tagged_block(const std::string &s) std::vector<formatted_string> lines; formatted_string::parse_string_to_multiple(s, lines); + int x = wherex(); + int y = wherey(); for (int i = 0, size = lines.size(); i < size; ++i) { - int x = wherex(); - int y = wherey(); + cgotoxy(x, y); lines[i].display(); - cgotoxy(x, y+1); + y++; } } |