small fix for v2 opcodes

svn-id: r7147
This commit is contained in:
Paweł Kołodziejski 2003-04-27 07:13:03 +00:00
parent 92ddaf20f0
commit 5a687ff50f
2 changed files with 5 additions and 12 deletions

View File

@ -305,7 +305,7 @@ protected:
void o2_stopSound();
void o2_endCutscene();
void o2_decrement();
void o2_divide();
void o2_drawSentence();
};
class Scumm_v4 : public Scumm_v3 {

View File

@ -248,7 +248,7 @@ void Scumm_v2::setupOpcodes() {
OPCODE(o2_addDirect),
OPCODE(o5_dummy),
/* AC */
OPCODE(o2_delay),
OPCODE(o2_drawSentence),
OPCODE(o2_putActorInRoom),
OPCODE(o2_waitForSentence),
OPCODE(o2_ifNotState04),
@ -306,7 +306,7 @@ void Scumm_v2::setupOpcodes() {
OPCODE(o2_printEgo),
OPCODE(o2_doSentence),
OPCODE(o2_add),
OPCODE(o2_divide),
OPCODE(o2_setBitVar),
/* DC */
OPCODE(o5_dummy),
OPCODE(o2_ifClassOfIs),
@ -1480,13 +1480,6 @@ void Scumm_v2::o2_stopSound() {
_sound->stopSound(getVarOrDirectByte(0x80));
}
void Scumm_v2::o2_divide() {
int a;
getResultPos();
a = getVarOrDirectWord(0x80);
if (a == 0) {
error("Divide by zero");
_vars[_resultVarNumber] = 0;
} else
_vars[_resultVarNumber] /= a;
void Scumm_v2::o2_drawSentence() {
error("TODO o2_drawSentence()");
}