Skip to content

Commit

Permalink
TITANIC: DE: Fix upgrading to 1st class
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Oct 3, 2017
1 parent ade8aad commit da6b280
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions engines/titanic/true_talk/deskbot_script.cpp
Expand Up @@ -396,9 +396,11 @@ int DeskbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri
case 1:
id = 240336;
break;

case 2:
addAssignedRoom();
id = addAssignedRoomDialogue();
break;

case 3:
if (id == 240431 || id == 240432) {
if (getValue(3) == 1) {
Expand All @@ -410,9 +412,13 @@ int DeskbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri
}
}
break;

default:
break;
}

addResponse(getDialogueId(id));
return 2;
} else {
switch (val1) {
case 1:
Expand Down Expand Up @@ -444,15 +450,20 @@ int DeskbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri

case 2:
if (getValue(1) == 1)
return true;
return 1;
break;

case 3:
if (getValue(1) != 1)
return 1;
break;

default:
break;
}
}

return 0;
return 0;
}
}

bool DeskbotScript::randomResponse(uint index) {
Expand Down

0 comments on commit da6b280

Please sign in to comment.