diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-13 12:40:50 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-13 12:40:50 +0000 |
commit | 1b7682ecfe6bb7d7d37e73f8769a452fdc8b04d2 (patch) | |
tree | 153c6ac2a903248e5c28e39b4a6cc3928834951a /crawl-ref/source/output.cc | |
parent | 0eb7e87096f07509f3fed6a82fab696d505a2c18 (diff) | |
download | crawl-ref-1b7682ecfe6bb7d7d37e73f8769a452fdc8b04d2.tar.gz crawl-ref-1b7682ecfe6bb7d7d37e73f8769a452fdc8b04d2.zip |
General code cleanups and goto removal.
Fixed a possible crash when using Backspace to restart character selection.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1855 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index b5cd2f3118..fe66dd794a 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -1013,12 +1013,11 @@ void print_overview_screen() } text = "<yellow>"; - snprintf(info, INFO_SIZE, "%s%s%s", you.your_name, title, race_class); - text += info; - int k = get_number_of_cols() - linelength -1; - text += std::string(k, ' '); - snprintf(info, INFO_SIZE, "%s", time_turns); - text += info; + text += you.your_name; + text += title; + text += race_class; + text += std::string(get_number_of_cols() - linelength - 1, ' '); + text += time_turns; text += "</yellow>\n"; cmd_help.add_text(text); |