diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-12 17:12:57 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-12 20:02:09 +0100 |
commit | 200cc9e8be88dd82757a0d18e869ccf811026e4e (patch) | |
tree | 1a90672a5971a785b860995baa6dd1712a5693bd /crawl-ref/source/macro.cc | |
parent | 74817034b423ddc4803e0187a5e6d7a60ff13430 (diff) | |
download | crawl-ref-200cc9e8be88dd82757a0d18e869ccf811026e4e.tar.gz crawl-ref-200cc9e8be88dd82757a0d18e869ccf811026e4e.zip |
Explicitly describe uppercase keys as such in the tutorial.
Diffstat (limited to 'crawl-ref/source/macro.cc')
-rw-r--r-- | crawl-ref/source/macro.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc index 3824eb3a64..2162597f47 100644 --- a/crawl-ref/source/macro.cc +++ b/crawl-ref/source/macro.cc @@ -1377,7 +1377,7 @@ static std::string _special_keys_to_string(int key) return (cmd); } -std::string command_to_string(command_type cmd) +std::string command_to_string(command_type cmd, bool tutorial) { const int key = command_to_key(cmd); @@ -1386,7 +1386,12 @@ std::string command_to_string(command_type cmd) return (desc); if (key >= 32 && key < 256) - snprintf(info, INFO_SIZE, "%c", (char) key); + { + if (tutorial && key >= 'A' && key <= 'Z') + snprintf(info, INFO_SIZE, "uppercase %c", (char) key); + else + snprintf(info, INFO_SIZE, "%c", (char) key); + } else if (key > 1000 && key <= 1009) { const int numpad = (key - 1000); |