Browse Source

fix interacting with lazarus books while not on circles

pull/5191/head
qndel 4 years ago committed by Anders Jenbo
parent
commit
3736b5c8fd
  1. 16
      Source/objects.cpp

16
Source/objects.cpp

@ -1908,14 +1908,7 @@ void OperateBook(Player &player, Object &book)
return; return;
} }
book._oSelFlag = 0; if (setlevel && setlvlnum == SL_VILEBETRAYER) {
book._oAnimFrame++;
if (!setlevel) {
return;
}
if (setlvlnum == SL_VILEBETRAYER) {
bool missileAdded = false; bool missileAdded = false;
for (int j = 0; j < ActiveObjectCount; j++) { for (int j = 0; j < ActiveObjectCount; j++) {
Object &questObject = Objects[ActiveObjects[j]]; Object &questObject = Objects[ActiveObjects[j]];
@ -1944,6 +1937,13 @@ void OperateBook(Player &player, Object &book)
} }
} }
book._oSelFlag = 0;
book._oAnimFrame++;
if (!setlevel) {
return;
}
if (setlvlnum == SL_BONECHAMB) { if (setlvlnum == SL_BONECHAMB) {
player._pMemSpells |= GetSpellBitmask(SPL_GUARDIAN); player._pMemSpells |= GetSpellBitmask(SPL_GUARDIAN);
if (player._pSplLvl[SPL_GUARDIAN] < MaxSpellLevel) if (player._pSplLvl[SPL_GUARDIAN] < MaxSpellLevel)

Loading…
Cancel
Save