Skip to content

Commit

Permalink
Removed useless overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
5jiji committed Mar 2, 2024
1 parent 782de10 commit f785acd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Assets/Scripts/BidHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,17 +431,12 @@ public void DestroyBidTI(TI_Bid TI_Bid)
}


public void BidRedemption(PlayerHandler ph, int bidAmount, BidType bidType)
public void BidRedemption(PlayerHandler ph, int bidAmount, BidType bidType, string redemptionID = null)
{
SpawnTI_Bid(ph, target:ph, bidAmount, bidType);
}
public void BidRedemption(PlayerHandler ph, int bidAmount, BidType bidType, string redemptionID)
{

if (redemptionID == null)
{
BidRedemption(ph, bidAmount, bidType);
return;
}

string TwitchID = ph.pp.TwitchID;

Expand All @@ -452,8 +447,6 @@ public void BidRedemption(PlayerHandler ph, int bidAmount, BidType bidType, stri

redemptionsIds.Add(redemptionID);
_redemptionsIds[TwitchID] = redemptionsIds;

BidRedemption(ph, bidAmount, bidType);
}

public void TryAddToBiddingQ(PlayerHandler ph)
Expand Down

0 comments on commit f785acd

Please sign in to comment.