Correct that FT opcode - it's bitwise or, not logical
svn-id: r5373
This commit is contained in:
parent
35678731d9
commit
1c975ba92e
2 changed files with 22 additions and 6 deletions
|
@ -302,8 +302,8 @@ void Scumm::setupOpcodes2()
|
|||
/* D4 */
|
||||
&Scumm::o6_invalid,
|
||||
&Scumm::o6_jumpToScript,
|
||||
&Scumm::o6_land,
|
||||
&Scumm::o6_lor,
|
||||
&Scumm::o6_band,
|
||||
&Scumm::o6_bor,
|
||||
/* D8 */
|
||||
&Scumm::o6_isRoomScriptRunning,
|
||||
&Scumm::o6_invalid,
|
||||
|
@ -625,8 +625,8 @@ void Scumm::setupOpcodes2()
|
|||
/* D4 */
|
||||
"o6_invalid",
|
||||
"o6_jumpToScript",
|
||||
"o6_land",
|
||||
"o6_lor",
|
||||
"o6_band",
|
||||
"o6_bor",
|
||||
/* D8 */
|
||||
"o6_isRoomScriptRunning",
|
||||
"o6_invalid",
|
||||
|
@ -889,18 +889,30 @@ void Scumm::o6_div()
|
|||
push(pop() / a);
|
||||
}
|
||||
|
||||
void Scumm::o6_land()
|
||||
void Scumm::o6_land() // Logical And
|
||||
{
|
||||
int a = pop();
|
||||
push(pop() && a);
|
||||
}
|
||||
|
||||
void Scumm::o6_lor()
|
||||
void Scumm::o6_lor() // Logical Or
|
||||
{
|
||||
int a = pop();
|
||||
push(pop() || a);
|
||||
}
|
||||
|
||||
void Scumm::o6_bor() // Bitwise Or
|
||||
{
|
||||
int a = pop();
|
||||
push(pop() | a);
|
||||
}
|
||||
|
||||
void Scumm::o6_band() // Bitwise And
|
||||
{
|
||||
int a = pop();
|
||||
push(pop() | a);
|
||||
}
|
||||
|
||||
void Scumm::o6_kill()
|
||||
{
|
||||
pop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue