Skip to content

Commit

Permalink
AGOS: Convert verb ids for Simon the Sorcerer 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirben committed Mar 1, 2014
1 parent 094a86e commit 901eeea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engines/agos/verb.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 901eeea

Please sign in to comment.