Browse Source

Fix splitting gold

pull/4227/head
Anders Jenbo 4 years ago
parent
commit
d0f351db12
  1. 9
      Source/control.cpp
  2. 2
      Source/control.h

9
Source/control.cpp

@ -369,7 +369,10 @@ void RemoveGold(Player &player, int goldIndex)
SetPlrHandGoldCurs(player.InvList[gi]);
else
player.RemoveInvItem(gi);
MakeGoldStack(player.HoldItem, dropGoldValue);
NewCursor(player.HoldItem._iCurs + CURSOR_FIRSTITEM);
player._pGold = CalculateGold(player);
dropGoldValue = 0;
}
@ -394,12 +397,6 @@ bool IsLevelUpButtonVisible()
} // namespace
void ControlSetGoldCurs(Item &goldItem)
{
SetPlrHandGoldCurs(goldItem);
NewCursor(goldItem._iCurs + CURSOR_FIRSTITEM);
}
void CalculatePanelAreas()
{
MainPanel = {

2
Source/control.h

@ -68,8 +68,6 @@ inline bool CanPanelsCoverView()
{
return GetScreenWidth() <= PANEL_WIDTH && GetScreenHeight() <= SPANEL_HEIGHT + PANEL_HEIGHT;
}
void ControlSetGoldCurs(Item &goldItem);
void DrawSpellList(const Surface &out);
void SetSpell();
void SetSpeedSpell(int slot);

Loading…
Cancel
Save