diff options
author | Strangerke | 2013-08-17 11:36:54 +0200 |
---|---|---|
committer | Strangerke | 2013-08-17 11:36:54 +0200 |
commit | a5ec205f46a9c5cc833a1cab616aa82bed1309c2 (patch) | |
tree | 36b4b4bb782952c9caac2cedafa470f4b1ea986b /engines | |
parent | ddb9f3862dae190b1e141c0d6ab88b34e49743ab (diff) | |
download | scummvm-rg350-a5ec205f46a9c5cc833a1cab616aa82bed1309c2.tar.gz scummvm-rg350-a5ec205f46a9c5cc833a1cab616aa82bed1309c2.tar.bz2 scummvm-rg350-a5ec205f46a9c5cc833a1cab616aa82bed1309c2.zip |
MORTEVIELLE: Fix occasional alignment issue in Action verb list
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; |