Browse Source

[controller] Fix dropping items to all sides

pull/513/head
Anders Jenbo 6 years ago
parent
commit
f313b66a34
  1. 8
      SourceX/controls/plrctrls.cpp

8
SourceX/controls/plrctrls.cpp

@ -935,7 +935,13 @@ void PerformSpellAction()
if (invflag) {
int spl = plr[myplr]._pRSpell;
if (pcurs >= CURSOR_FIRSTITEM) {
DropItemBeforeTrig();
cursmx = plr[myplr].WorldX;
cursmy = plr[myplr].WorldY;
if (!DropItemBeforeTrig()) {
cursmx--; // Try to drop on the other side
cursmy++;
DropItemBeforeTrig();
}
return;
}
if (spl != SPL_IDENTIFY && spl != SPL_REPAIR && spl != SPL_RECHARGE)

Loading…
Cancel
Save