Remove unused parameter in DrawHediffRow_Patch

This commit is contained in:
lutepickle 2022-06-08 06:37:04 -07:00
parent 56691171b4
commit 31d6fce892

View file

@ -89,7 +89,7 @@ namespace RJW_Menstruation
public const float buttonWidth = 50f; public const float buttonWidth = 50f;
public const float buttonHeight = 20f; public const float buttonHeight = 20f;
private static HediffComp_Menstruation GetFirstMenstruation(IEnumerable<Hediff> diffs, float rectWidth) private static HediffComp_Menstruation GetFirstMenstruation(IEnumerable<Hediff> diffs)
{ {
foreach (Hediff diff in diffs) foreach (Hediff diff in diffs)
{ {
@ -103,7 +103,7 @@ namespace RJW_Menstruation
{ {
if (Configurations.EnableButtonInHT && pawn.ShowStatus()) if (Configurations.EnableButtonInHT && pawn.ShowStatus())
{ {
HediffComp_Menstruation comp = GetFirstMenstruation(diffs, rect.width * 0.625f); HediffComp_Menstruation comp = GetFirstMenstruation(diffs);
if (comp != null) if (comp != null)
{ {
Rect buttonrect = new Rect((rect.xMax) / 2 - 5f, curY + 2f, buttonWidth, buttonHeight); Rect buttonrect = new Rect((rect.xMax) / 2 - 5f, curY + 2f, buttonWidth, buttonHeight);