Browse Source

Update player's spell target when using quick cast on gamepad

pull/4385/head
staphen 4 years ago committed by Anders Jenbo
parent
commit
2759eb130b
  1. 8
      Source/controls/plrctrls.cpp

8
Source/controls/plrctrls.cpp

@ -2017,8 +2017,14 @@ void PerformSecondaryAction()
void QuickCast(int slot)
{
auto &myPlayer = Players[MyPlayerId];
spell_id spell = myPlayer._pSplHotKey[slot];
spell_type spellType = myPlayer._pSplTHotKey[slot];
CheckPlrSpell(false, myPlayer._pSplHotKey[slot], myPlayer._pSplTHotKey[slot]);
if (ControlMode != ControlTypes::KeyboardAndMouse) {
UpdateSpellTarget(spell);
}
CheckPlrSpell(false, spell, spellType);
}
} // namespace devilution

Loading…
Cancel
Save