diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mortevielle/menu.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/mortevielle/menu.cpp b/engines/mortevielle/menu.cpp index d6b9d57141..1077f66fc2 100644 --- a/engines/mortevielle/menu.cpp +++ b/engines/mortevielle/menu.cpp @@ -174,17 +174,29 @@ void Menu::setText(MenuItem item, Common::String name) { _moveStringArray[item._actionId] = s; break; - case MENU_ACTION: + case MENU_ACTION: { + // If the first character isn't '*' or ' ' then it's missing a heading space + char c = s[0]; + if (c != '*' && c != ' ') + s = ' ' + s; + while (s.size() < 10) s += ' '; _actionStringArray[item._actionId] = s; + } break; - case MENU_SELF: + case MENU_SELF: { + // If the first character isn't '*' or ' ' then it's missing a heading space + char c = s[0]; + if (c != '*' && c != ' ') + s = ' ' + s; + while (s.size() < 10) s += ' '; _selfStringArray[item._actionId] = s; + } break; case MENU_DISCUSS: _discussStringArray[item._actionId] = s; |