From f065a2868dd89127e562288acd66be27b4883148 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 7 Jun 2007 17:51:47 +0000 Subject: Update 'V' feature display to include Unicode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1554 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/command.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'crawl-ref/source/command.cc') diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index eedeb15cef..855ecbf86b 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -55,7 +55,6 @@ void quit_game(void) } // end quit_game() static const char *features[] = { - "", "Stash-tracking", #ifdef CLUA_BINDINGS @@ -69,20 +68,22 @@ static const char *features[] = { #else "Glob patterns", #endif + +#if defined(SOUND_PLAY_COMMAND) || defined(WINMM_PLAY_SOUNDS) + "Sound support", +#endif + +#ifdef UNICODE_GLYPHS + "Unicode glyphs", +#endif }; void version(void) { mpr( "This is " CRAWL " " VERSION " (" VERSION_DETAIL ")." ); - - std::string feats = "Features: "; - for (int i = 1, size = sizeof features / sizeof *features; i < size; ++i) - { - if (i > 1) - feats += ", "; - feats += features[i]; - } - mpr(feats.c_str()); + mprf("Features: %s", + comma_separated_line(features, features + ARRAYSIZE(features)) + .c_str()); } // end version() void adjust(void) -- cgit v1.2.3-54-g00ecf