diff options
-rw-r--r-- | engines/saga/interface.cpp | 26 | ||||
-rw-r--r-- | engines/saga/saga.h | 7 |
2 files changed, 9 insertions, 24 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index 842cacd685..7583f286d0 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -52,25 +52,9 @@ namespace Saga { -static int verbTypeToTextStringsIdLUT[2][kVerbTypeIdsMax] = { - {-1, - kTextPickUp, - kTextLookAt, - kTextWalkTo, - kTextTalkTo, - kTextOpen, - kTextClose, - kTextGive, - kTextUse}, - {-1, - kVerbIHNMWalk, - kVerbIHNMLookAt, - kVerbIHNMTake, - kVerbIHNMUse, - kVerbIHNMTalkTo, - kVerbIHNMSwallow, - kVerbIHNMGive, - kVerbIHNMPush} +static int verbToTextIdITE[] = { + kTextWalkTo, kTextLookAt, kTextPickUp, kTextTalkTo, + kTextOpen, kTextClose, kTextUse, kTextGive }; // This maps the internally used string ITE IDs to the LUT strings loaded in IHNM @@ -2368,10 +2352,10 @@ void Interface::drawVerbPanelText(PanelButton *panelButton, KnownColor textKnown int textId; if (_vm->getGameId() == GID_ITE) { - textId = verbTypeToTextStringsIdLUT[0][panelButton->id]; + textId = verbToTextIdITE[panelButton->id - 1]; text = _vm->getTextString(textId); } else { - textId = verbTypeToTextStringsIdLUT[1][panelButton->id]; + textId = panelButton->id; text = _vm->_script->_mainStrings.getString(textId + 1); textShadowKnownColor = kKnownColorTransparent; } diff --git a/engines/saga/saga.h b/engines/saga/saga.h index 36010ae7cb..0dce9df3cc 100644 --- a/engines/saga/saga.h +++ b/engines/saga/saga.h @@ -205,14 +205,15 @@ enum GameSoundTypes { }; enum TextStringIds { - kTextWalkTo, - kTextLookAt, kTextPickUp, + kTextLookAt, + kTextWalkTo, kTextTalkTo, kTextOpen, kTextClose, - kTextUse, kTextGive, + kTextUse, + kTextOptions, kTextTest, kTextDemo, |