Browse Source

OperateInnSignChest bin exact

pull/78/head
qndel 7 years ago committed by Anders Jenbo
parent
commit
66dce4336b
  1. 43
      Source/objects.cpp

43
Source/objects.cpp

@ -3504,36 +3504,29 @@ void __fastcall OperateMushPatch(int pnum, int i)
void __fastcall OperateInnSignChest(int pnum, int i) void __fastcall OperateInnSignChest(int pnum, int i)
{ {
int v4; // esi int x, y;
BOOLEAN v5; // zf
int xx; // [esp+8h] [ebp-8h]
int yy; // [esp+Ch] [ebp-4h]
if (quests[QTYPE_BOL]._qvar1 == 2) { if (quests[QTYPE_BOL]._qvar1 != 2) {
v4 = i; if (!deltaload && pnum == myplr) {
if (plr[myplr]._pClass == PC_WARRIOR) {
PlaySFX(PS_WARR24);
} else if (plr[myplr]._pClass == PC_ROGUE) {
PlaySFX(PS_ROGUE24);
} else if (plr[myplr]._pClass == PC_SORCERER) {
PlaySFX(PS_MAGE24);
}
}
} else {
if (object[i]._oSelFlag) { if (object[i]._oSelFlag) {
if (!deltaload) if (!deltaload)
PlaySfxLoc(IS_CHEST, object[v4]._ox, object[v4]._oy); PlaySfxLoc(IS_CHEST, object[i]._ox, object[i]._oy);
object[v4]._oAnimFrame += 2; object[i]._oAnimFrame += 2;
v5 = deltaload == 0; object[i]._oSelFlag = 0;
object[v4]._oSelFlag = 0; if (!deltaload) {
if (v5) { GetSuperItemLoc(object[i]._ox, object[i]._oy, &x, &y);
GetSuperItemLoc(object[v4]._ox, object[v4]._oy, &xx, &yy); SpawnQuestItem(IDI_BANNER, x, y, 0, 0);
SpawnQuestItem(IDI_BANNER, xx, yy, 0, 0);
} }
} }
} else if (!deltaload && pnum == myplr) {
switch (plr[myplr]._pClass) {
case PC_WARRIOR:
PlaySFX(PS_WARR24);
break;
case PC_ROGUE:
PlaySFX(PS_ROGUE24);
break;
case PC_SORCERER:
PlaySFX(PS_MAGE24);
break;
}
} }
} }
// 676190: using guessed type int deltaload; // 676190: using guessed type int deltaload;

Loading…
Cancel
Save