Browse Source

Enable identify on stash items

pull/4179/head
obligaron 4 years ago committed by Anders Jenbo
parent
commit
ae5423ad68
  1. 7
      Source/diablo.cpp
  2. 3
      Source/items.cpp

7
Source/diablo.cpp

@ -1812,8 +1812,11 @@ bool TryIconCurs()
if (pcurs == CURSOR_IDENTIFY) {
if (pcursinvitem != -1)
CheckIdentify(myPlayer, pcursinvitem);
else
NewCursor(CURSOR_HAND);
else if (pcursstashitem != uint16_t(-1)) {
Item &item = Stash.stashList[pcursstashitem];
item._iIdentified = true;
}
NewCursor(CURSOR_HAND);
return true;
}

3
Source/items.cpp

@ -3629,9 +3629,6 @@ void CheckIdentify(Player &player, int cii)
pi->_iIdentified = true;
CalcPlrInv(player, true);
if (&player == &Players[MyPlayerId])
NewCursor(CURSOR_HAND);
}
void DoRepair(Player &player, int cii)

Loading…
Cancel
Save