diff options
author | Travis Howell | 2008-04-16 08:50:25 +0000 |
---|---|---|
committer | Travis Howell | 2008-04-16 08:50:25 +0000 |
commit | 7e222b1a0c687ed430933a0d6eb3148053d0fa3f (patch) | |
tree | 343a9e490a5f4164e755c8b511722af9ac8926bb /engines/agos/script_e2.cpp | |
parent | a1ddd9ba817a19be1541b21d5b57f1d0fe8e9576 (diff) | |
download | scummvm-rg350-7e222b1a0c687ed430933a0d6eb3148053d0fa3f.tar.gz scummvm-rg350-7e222b1a0c687ed430933a0d6eb3148053d0fa3f.tar.bz2 scummvm-rg350-7e222b1a0c687ed430933a0d6eb3148053d0fa3f.zip |
Cleanup.
svn-id: r31512
Diffstat (limited to 'engines/agos/script_e2.cpp')
-rw-r--r-- | engines/agos/script_e2.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp index 9bbcbf15b3..7713a68141 100644 --- a/engines/agos/script_e2.cpp +++ b/engines/agos/script_e2.cpp @@ -255,8 +255,8 @@ void AGOSEngine_Elvira2::setupOpcodes() { OPCODE(oe2_getDollar2), /* 176 */ OPCODE(oe2_setSRExit), - OPCODE(oe2_unk177), - OPCODE(oe2_unk178), + OPCODE(oe2_printPlayerDamage), + OPCODE(oe2_printMonsterDamage), OPCODE(oe2_isAdjNoun), /* 180 */ OPCODE(oe2_b2Set), @@ -624,28 +624,24 @@ void AGOSEngine_Elvira2::oe2_setSRExit() { setSRExit(i, n, d, s); } -void AGOSEngine_Elvira2::oe2_unk177() { - // 177: Set damage indicator event +void AGOSEngine_Elvira2::oe2_printPlayerDamage() { + // 177: set player damage event uint a = getVarOrByte(); if (_opcode177Var1 && !_opcode177Var2 && a != 0 && a <= 10) { - addVgaEvent(_vgaBaseDelay, IMAGE_EVENT2, NULL, 0, a); + addVgaEvent(_vgaBaseDelay, PLAYER_DAMAGE_EVENT, NULL, 0, a); _opcode177Var2 = 0; _opcode177Var1 = 0; } - - debug(0, "oe2_unk177: stub (%d)", a); } -void AGOSEngine_Elvira2::oe2_unk178() { - // 178: set unknown vga event +void AGOSEngine_Elvira2::oe2_printMonsterDamage() { + // 178: set monster damage event uint a = getVarOrByte(); if (_opcode178Var1 && !_opcode178Var2 && a != 0 && a <= 10) { - addVgaEvent(_vgaBaseDelay, IMAGE_EVENT3, NULL, 0, a); + addVgaEvent(_vgaBaseDelay, MONSTER_DAMAGE_EVENT, NULL, 0, a); _opcode178Var2 = 0; _opcode178Var1 = 0; } - - debug(0, "oe2_unk178: stub (%d)", a); } void AGOSEngine_Elvira2::oe2_isAdjNoun() { |