summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-24 16:26:48 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-24 16:26:48 +0200
commit6bbd3e9e43fddca75b87d5bca1fc1a37faf87357 (patch)
treea07916f901ac860052e7562d2ec0f5efc51e40dc /crawl-ref/source/output.cc
parente4d195a439f1cbcd6a4302a3fd7d7454cfb04d42 (diff)
downloadcrawl-ref-6bbd3e9e43fddca75b87d5bca1fc1a37faf87357.tar.gz
crawl-ref-6bbd3e9e43fddca75b87d5bca1fc1a37faf87357.zip
Convert player::your_name to std::string.
Doesn't seem to break anything...
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index 938948e626..a03f66ff8a 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -1882,7 +1882,7 @@ static std::string _overview_screen_title()
you.num_turns, make_time_string(curr, true).c_str() );
}
- int linelength = strlen(you.your_name) + strlen(title)
+ int linelength = you.your_name.length() + strlen(title)
+ strlen(race_class) + strlen(time_turns);
for (int count = 0; linelength >= get_number_of_cols() && count < 2;
count++)
@@ -1901,7 +1901,7 @@ static std::string _overview_screen_title()
default:
break;
}
- linelength = strlen(you.your_name) + strlen(title)
+ linelength = you.your_name.length() + strlen(title)
+ strlen(race_class) + strlen(time_turns);
}