diff options
author | Kirben | 2014-03-01 22:54:18 +1100 |
---|---|---|
committer | Kirben | 2014-03-01 22:54:18 +1100 |
commit | 901eeea62e679e6b657bf2301adbc9d4c01a9cb1 (patch) | |
tree | 6c0eb2457acc0c1d86222835a4295078e0a8f857 /engines/agos | |
parent | 094a86e076473dfbbed6f8e35db9243817e0d3a8 (diff) | |
download | scummvm-rg350-901eeea62e679e6b657bf2301adbc9d4c01a9cb1.tar.gz scummvm-rg350-901eeea62e679e6b657bf2301adbc9d4c01a9cb1.tar.bz2 scummvm-rg350-901eeea62e679e6b657bf2301adbc9d4c01a9cb1.zip |
AGOS: Convert verb ids for Simon the Sorcerer 2.
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/verb.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp index 45dbfd0840..fb3878381f 100644 --- a/engines/agos/verb.cpp +++ b/engines/agos/verb.cpp @@ -249,12 +249,18 @@ void AGOSEngine::clearName() { resetNameWindow(); } +static const byte convertVerbID[9] = { + 0, 1, 5, 11, 8, 7, 10, 3, 2 +}; + void AGOSEngine::printVerbOf(uint hitarea_id) { const char *txt; const char * const *verb_names; const char * const *verb_prep_names; hitarea_id -= 101; + if (getGameType() == GType_SIMON2) + hitarea_id = convertVerbID[hitarea_id]; if (_showPreposition) { switch (_language) { |