Browse Source

[gamepad] Align cursor after using item

pull/4171/head
Anders Jenbo 4 years ago
parent
commit
fbabb96464
  1. 6
      Source/controls/plrctrls.cpp

6
Source/controls/plrctrls.cpp

@ -1745,14 +1745,14 @@ void CtrlUseInvItem()
return;
}
int itemId = GetItemIdOnSlot(Slot);
if (item->isEquipment()) {
int itemId = GetItemIdOnSlot(Slot);
CheckInvItem(true, false); // auto-equip if it's an equipment
if (itemId != GetItemIdOnSlot(Slot))
ResetInvCursorPosition();
} else {
UseInvItem(MyPlayerId, pcursinvitem);
}
if (itemId != GetItemIdOnSlot(Slot))
ResetInvCursorPosition();
}
void CtrlUseStashItem()

Loading…
Cancel
Save