Skip to content

Commit

Permalink
Fix bad rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Sep 20, 2024
1 parent ffcb3e6 commit cdc8b9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/diablo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ void LeftMouseUp(uint16_t modState)
ReleaseChrBtns(isShiftHeld);
}
if (LevelButtonDown)
ReleaseLvlBtn();
CheckLevelButtonUp();
if (Stores.activeStore != TalkID::None)
Stores.ReleaseStoreBtn();
}
Expand Down
4 changes: 2 additions & 2 deletions Source/stores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ void StoreSession::DrawTownerSell(TalkID talkId)
for (int8_t i = 0; i < MyPlayer->_pNumInv; i++) {
if (playerItemIdx >= 48)
break;
if (talkId == TalkID::SmithSell ? CanSellToSmith(i) : CanSellToWitch(i)) {
if (CanSellToTowner(talkId, i)) {
sellOk = true;
playerItem[playerItemIdx] = MyPlayer->InvList[i];

Expand All @@ -711,7 +711,7 @@ void StoreSession::DrawTownerSell(TalkID talkId)
for (int i = 0; i < MaxBeltItems; i++) {
if (playerItemIdx >= 48)
break;
if (talkId == TalkID::SmithSell ? CanSellToSmith(-(i + 1)) : CanSellToWitch(-(i + 1))) {
if (CanSellToTowner(talkId, i)) {
sellOk = true;
playerItem[playerItemIdx] = MyPlayer->SpdList[i];

Expand Down
2 changes: 1 addition & 1 deletion Source/stores.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class StoreSession {
void UpdateItemStatFlags(TalkID talkId);
void DrawTownerBuy(TalkID talkId);
void DrawTownerSell(TalkID talkId);
void CanSellToTowner(TalkID talkId, int i);
bool CanSellToTowner(TalkID talkId, int i);

/* Smith */

Expand Down

0 comments on commit cdc8b9d

Please sign in to comment.