mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
small fix for v2 opcodes
svn-id: r7147
This commit is contained in:
parent
92ddaf20f0
commit
5a687ff50f
@ -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 {
|
||||
|
@ -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()");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user