From d3b5214f95f4cb6863f39d724588fc7eeb045c23 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 4 Nov 2019 12:09:36 +0100 Subject: [PATCH] Clarify user strings section in comment; add stylistic braces. --- src/openrct2-ui/input/KeyboardShortcuts.cpp | 2 ++ src/openrct2/localisation/StringIds.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/input/KeyboardShortcuts.cpp b/src/openrct2-ui/input/KeyboardShortcuts.cpp index f3273c15fb..116825c829 100644 --- a/src/openrct2-ui/input/KeyboardShortcuts.cpp +++ b/src/openrct2-ui/input/KeyboardShortcuts.cpp @@ -208,7 +208,9 @@ std::string KeyboardShortcuts::GetShortcutString(int32_t shortcut) const String::Append(buffer, sizeof(buffer), formatBuffer); } else + { String::Append(buffer, sizeof(buffer), SDL_GetKeyName(SDL_GetKeyFromScancode(scanCode))); + } return std::string(buffer); } diff --git a/src/openrct2/localisation/StringIds.h b/src/openrct2/localisation/StringIds.h index 67fa0658f9..4626458fc5 100644 --- a/src/openrct2/localisation/StringIds.h +++ b/src/openrct2/localisation/StringIds.h @@ -2608,7 +2608,7 @@ enum STR_SET_PATROL_AREA = 3445, STR_CLEAR_PATROL_AREA = 3446, - // 3447--5119 unused + // 3447--5119 reserved for user strings. STR_OPENRCT2_BEGIN_STRING_ID = 5120,