Browse Source

Fix distributing stat points using gamepad

pull/3200/head
staphen 5 years ago committed by Anders Jenbo
parent
commit
900af16a9e
  1. 4
      Source/controls/plrctrls.cpp

4
Source/controls/plrctrls.cpp

@ -1394,7 +1394,9 @@ void PerformPrimaryAction()
if (chrflag && !chrbtnactive && Players[MyPlayerId]._pStatPts > 0) {
CheckChrBtns();
for (int i = 0; i < 4; i++) {
if (ChrBtnsRect[i].Contains(MousePosition)) {
Rectangle button = ChrBtnsRect[i];
button.position = GetPanelPosition(UiPanels::Character, button.position);
if (button.Contains(MousePosition)) {
chrbtn[i] = true;
chrbtnactive = true;
ReleaseChrBtns(false);

Loading…
Cancel
Save