diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-27 16:08:54 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-27 16:08:54 +0000 |
commit | 373a436152c93ae83b41682a732aa12d4fd4a821 (patch) | |
tree | 00b0f8e5d32fd2afb11bb826f1d4b7383ad2a80e /crawl-ref/source/ouch.cc | |
parent | 8fdecb28b8ec9f4e3858a059a6b55486585780d8 (diff) | |
parent | 93731f302aac0d4e41fd606028a391c207307e0f (diff) | |
download | crawl-ref-373a436152c93ae83b41682a732aa12d4fd4a821.tar.gz crawl-ref-373a436152c93ae83b41682a732aa12d4fd4a821.zip |
Tagging 0.1.4 for release.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/tags/stone_soup-0.1.4@512 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 4cc78e65d8..f73f3c20da 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -891,15 +891,12 @@ void end_game( struct scorefile_entry &se ) cprintf( "Goodbye, %s.", you.your_name ); cprintf( EOL EOL " " ); // Space padding where # would go in list format - char scorebuff[ HIGHSCORE_SIZE ]; - hiscores_format_single_long( scorebuff, se, true ); - // truncate - scorebuff[ HIGHSCORE_SIZE - 1 ] = 0; + std::string hiscore = hiscores_format_single_long( se, true ); - const int lines = count_occurrences(scorebuff, EOL) + 1; + const int lines = count_occurrences(hiscore, EOL) + 1; - cprintf( scorebuff ); + cprintf( "%s", hiscore.c_str() ); cprintf( EOL "Best Crawlers -" EOL ); |