diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-24 16:26:48 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-24 16:26:48 +0200 |
commit | 6bbd3e9e43fddca75b87d5bca1fc1a37faf87357 (patch) | |
tree | a07916f901ac860052e7562d2ec0f5efc51e40dc /crawl-ref/source/output.cc | |
parent | e4d195a439f1cbcd6a4302a3fd7d7454cfb04d42 (diff) | |
download | crawl-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.cc | 4 |
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); } |