Browse Source

Correctly indicate when scroll can be used on virtual gamepad

pull/4682/head
staphen 4 years ago committed by Anders Jenbo
parent
commit
b349e29058
  1. 2
      Source/controls/touch/renderers.cpp

2
Source/controls/touch/renderers.cpp

@ -454,7 +454,7 @@ VirtualGamepadButtonType SecondaryActionButtonRenderer::GetButtonType()
if (pcursinvitem != -1) {
Item &item = GetInventoryItem(*MyPlayer, pcursinvitem);
if (!item.isScroll() || !spelldata[item._iSpell].sTargeted) {
if (!item.isScroll() || !TargetsMonster(item._iSpell)) {
if (!item.isEquipment()) {
return GetApplyButtonType(virtualPadButton->isHeld);
}

Loading…
Cancel
Save