From 901eeea62e679e6b657bf2301adbc9d4c01a9cb1 Mon Sep 17 00:00:00 2001 From: Kirben Date: Sat, 1 Mar 2014 22:54:18 +1100 Subject: [PATCH] AGOS: Convert verb ids for Simon the Sorcerer 2. --- engines/agos/verb.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp index 45dbfd0840ca..fb3878381f8b 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) {