diff options
author | Travis Howell | 2007-05-26 13:23:06 +0000 |
---|---|---|
committer | Travis Howell | 2007-05-26 13:23:06 +0000 |
commit | d6e0fe13b5ff266c87f2119f9d1c42b70cdea496 (patch) | |
tree | d02601bab4086332b3fd767dd3c318f89cd892af /engines/agos/script_e2.cpp | |
parent | 0bd2a211fd01b08c97867747e786ebc908caa403 (diff) | |
download | scummvm-rg350-d6e0fe13b5ff266c87f2119f9d1c42b70cdea496.tar.gz scummvm-rg350-d6e0fe13b5ff266c87f2119f9d1c42b70cdea496.tar.bz2 scummvm-rg350-d6e0fe13b5ff266c87f2119f9d1c42b70cdea496.zip |
Add code for opcodes 177/178 in Elvira 2.
svn-id: r26937
Diffstat (limited to 'engines/agos/script_e2.cpp')
-rw-r--r-- | engines/agos/script_e2.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp index bb492a30b9..3b2c1203df 100644 --- a/engines/agos/script_e2.cpp +++ b/engines/agos/script_e2.cpp @@ -638,14 +638,26 @@ void AGOSEngine_Elvira2::oe2_setSRExit() { } void AGOSEngine_Elvira2::oe2_unk177() { - // 177: set unknown vga event + // 177: Set damage indicator event uint a = getVarOrByte(); + if (_opcode177Var1 && !_opcode177Var2 && a != 0 && a <= 10) { + addVgaEvent(_vgaBaseDelay, IMAGE_EVENT2, NULL, 0, a); + _opcode177Var2 = 0; + _opcode177Var1 = 0; + } + debug(0, "oe2_unk177: stub (%d)", a); } void AGOSEngine_Elvira2::oe2_unk178() { // 178: set unknown vga event uint a = getVarOrByte(); + if (_opcode178Var1 && !_opcode178Var2 && a != 0 && a <= 10) { + addVgaEvent(_vgaBaseDelay, IMAGE_EVENT3, NULL, 0, a); + _opcode178Var2 = 0; + _opcode178Var1 = 0; + } + debug(0, "oe2_unk178: stub (%d)", a); } |