fix a potiental journal issue
svn-id: r11478
This commit is contained in:
parent
2592184788
commit
a15fa0302a
3 changed files with 7 additions and 7 deletions
|
@ -247,14 +247,12 @@ void Command::executeCurrentAction(bool walk) {
|
||||||
}
|
}
|
||||||
else if (cond >= 0) {
|
else if (cond >= 0) {
|
||||||
// we've had a successful Gamestate check, so we must now exit
|
// we've had a successful Gamestate check, so we must now exit
|
||||||
executeCommand(comId, cond);
|
cond = executeCommand(comId, cond);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cond <= 0 && _selCmd.action.value() == VERB_LOOK_AT) {
|
||||||
if (_selCmd.action.value() == VERB_LOOK_AT) {
|
|
||||||
// Look At, do standard look at routine
|
|
||||||
look();
|
look();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -358,7 +356,7 @@ void Command::readCommandsFrom(byte *&ptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Command::executeCommand(uint16 comId, int16 condResult) {
|
int16 Command::executeCommand(uint16 comId, int16 condResult) {
|
||||||
|
|
||||||
// execute.c l.313-452
|
// execute.c l.313-452
|
||||||
debug(0, "Command::executeCommand() - cond = %X, com = %X", condResult, comId);
|
debug(0, "Command::executeCommand() - cond = %X, com = %X", condResult, comId);
|
||||||
|
@ -448,7 +446,7 @@ void Command::executeCommand(uint16 comId, int16 condResult) {
|
||||||
switch (com->specialSection) {
|
switch (com->specialSection) {
|
||||||
case 1:
|
case 1:
|
||||||
_logic->useJournal();
|
_logic->useJournal();
|
||||||
return;
|
return condResult;
|
||||||
case 2:
|
case 2:
|
||||||
_logic->joeUseDress(true);
|
_logic->joeUseDress(true);
|
||||||
break;
|
break;
|
||||||
|
@ -477,6 +475,7 @@ void Command::executeCommand(uint16 comId, int16 condResult) {
|
||||||
if (condResult > 0) {
|
if (condResult > 0) {
|
||||||
_logic->joeSpeak(condResult, true);
|
_logic->joeSpeak(condResult, true);
|
||||||
}
|
}
|
||||||
|
return condResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void executeCommand(uint16 comId, int16 condResult);
|
int16 executeCommand(uint16 comId, int16 condResult);
|
||||||
|
|
||||||
int16 makeJoeWalkTo(int16 x, int16 y, int16 objNum, const Verb &v, bool mustWalk);
|
int16 makeJoeWalkTo(int16 x, int16 y, int16 objNum, const Verb &v, bool mustWalk);
|
||||||
|
|
||||||
|
|
|
@ -1908,6 +1908,7 @@ void Logic::playCutaway(const char *cutFile, char *next) {
|
||||||
if (next == NULL) {
|
if (next == NULL) {
|
||||||
next = nextFile;
|
next = nextFile;
|
||||||
}
|
}
|
||||||
|
_graphics->textClear(CmdText::COMMAND_Y_POS, CmdText::COMMAND_Y_POS);
|
||||||
Cutaway::run(cutFile, next, _graphics, _input, this, _resource, _sound);
|
Cutaway::run(cutFile, next, _graphics, _input, this, _resource, _sound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue