XEEN: Fix prompt text for teleport mirror

This commit is contained in:
Paul Gilbert 2017-11-25 18:09:03 -05:00
parent a7182e2a6a
commit 8a8e16698b
2 changed files with 10 additions and 10 deletions

View File

@ -350,7 +350,7 @@ bool Scripts::doOpcode(MazeEvent &event) {
&Scripts::cmdMoveObj, &Scripts::cmdTakeOrGive, &Scripts::cmdDoNothing,
&Scripts::cmdRemove, &Scripts::cmdSetChar, &Scripts::cmdSpawn,
&Scripts::cmdDoTownEvent, &Scripts::cmdExit, &Scripts::cmdAlterMap,
&Scripts::cmdGiveExtended, &Scripts::cmdConfirmEnding, &Scripts::cmdDamage,
&Scripts::cmdGiveExtended, &Scripts::cmdConfirmWord, &Scripts::cmdDamage,
&Scripts::cmdJumpRnd, &Scripts::cmdAlterEvent, &Scripts::cmdCallEvent,
&Scripts::cmdReturn, &Scripts::cmdSetVar, &Scripts::cmdTakeOrGive,
&Scripts::cmdTakeOrGive, &Scripts::cmdCutsceneEndClouds,
@ -362,7 +362,7 @@ bool Scripts::doOpcode(MazeEvent &event) {
&Scripts::cmdItemType, &Scripts::cmdMakeNothingHere, &Scripts::cmdCheckProtection,
&Scripts::cmdChooseNumeric, &Scripts::cmdDisplayBottomTwoLines,
&Scripts::cmdDisplayLarge, &Scripts::cmdExchObj, &Scripts::cmdFallToMap,
&Scripts::cmdDisplayMain, &Scripts::cmdGoto, &Scripts::cmdConfirmEnding,
&Scripts::cmdDisplayMain, &Scripts::cmdGoto, &Scripts::cmdConfirmWord,
&Scripts::cmdGotoRandom, &Scripts::cmdCutsceneEndDarkside,
&Scripts::cmdCutsceneEndWorld, &Scripts::cmdFlipWorld, &Scripts::cmdPlayCD
};
@ -914,7 +914,7 @@ bool Scripts::cmdGiveExtended(ParamsIterator &params) {
return true;
}
bool Scripts::cmdConfirmEnding(ParamsIterator &params) {
bool Scripts::cmdConfirmWord(ParamsIterator &params) {
Map &map = *_vm->_map;
Party &party = *_vm->_party;
int inputType = params.readByte();
@ -922,19 +922,18 @@ bool Scripts::cmdConfirmEnding(ParamsIterator &params) {
int param2 = params.readByte();
int param3 = params.readByte();
Common::String msg1 = param2 ? map._events._text[param2] :
_vm->_interface->_interfaceText;
Common::String msg1 = param2 ? map._events._text[param2] : _message;
Common::String msg2;
if (_event->_opcode == OP_ConfirmWord_2) {
msg2 = map._events._text[param3];
} else if (param3) {
msg2 = "";
} else if (param3) {
msg2 = map._events._text[param3];
} else {
msg2 = Res.WHATS_THE_PASSWORD;
}
int result = StringInput::show(_vm, inputType, msg1, msg2,_event->_opcode);
int result = StringInput::show(_vm, inputType, msg1, msg2, _event->_opcode);
if (result) {
if (result == 33 && _vm->_files->_isDarkCc) {
doEndGame2();

View File

@ -293,9 +293,10 @@ private:
bool cmdGiveExtended(ParamsIterator &params);
/**
* Confirms with the player for initiating the endgame
* Prompts the user to enter a word for passwords or mirror
* teleport destinations
*/
bool cmdConfirmEnding(ParamsIterator &params);
bool cmdConfirmWord(ParamsIterator &params);
/**
* Deals damage to a character