summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/guic.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-19 00:13:29 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-19 00:13:29 +0000
commit81b12532efb337e803cd89b290209a2f79a1678d (patch)
tree243f1e59a9c6eb11130ef9cb93d030b93df4e2b5 /crawl-ref/source/guic.cc
parent51236f4eb5ea7b4dc68c2cca2e15bb35558f8abf (diff)
downloadcrawl-ref-81b12532efb337e803cd89b290209a2f79a1678d.tar.gz
crawl-ref-81b12532efb337e803cd89b290209a2f79a1678d.zip
[1941577] Fixed issue where title line sometimes contained characters from species line. This was due to the title writing (blank) strings that were too long and wrapping around to the next line.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4349 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/guic.cc')
-rw-r--r--crawl-ref/source/guic.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/guic.cc b/crawl-ref/source/guic.cc
index 3b3671f6b6..9e3eb26505 100644
--- a/crawl-ref/source/guic.cc
+++ b/crawl-ref/source/guic.cc
@@ -701,6 +701,10 @@ void TextRegionClass::textbackground(int col)
void TextRegionClass::cgotoxy(int x, int y)
{
+ ASSERT(x >= 1);
+ ASSERT(y >= 1);
+ ASSERT(x <= text_mode->mx);
+ ASSERT(y <= text_mode->my);
print_x = x-1;
print_y = y-1;