Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel authored and AJenbo committed Sep 23, 2024
1 parent 793eb7a commit fe15ae3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Source/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,6 @@ void DrawMainPanel(const Surface &out)
void DrawMainPanelButtons(const Surface &out)
{
const Point mainPanelPosition = GetMainPanel().position;
int totalButtons = IsChatAvailable() ? TotalMpMainPanelButtons : TotalSpMainPanelButtons;

for (int i = 0; i < TotalSpMainPanelButtons; i++) {
if (!MainPanelButtons[i]) {
Expand Down Expand Up @@ -991,8 +990,6 @@ void ResetMainPanelButtons()

void CheckMainPanelButton()
{
const Point mainPanelPosition = GetMainPanel().position;

int totalButtons = IsChatAvailable() ? TotalMpMainPanelButtons : TotalSpMainPanelButtons;

for (int i = 0; i < totalButtons; i++) {
Expand Down Expand Up @@ -1288,7 +1285,6 @@ void CheckLevelButton()
return;
}

const Point mainPanelPosition = GetMainPanel().position;
Rectangle button = LevelButtonRect;

SetPanelObjectPosition(UiPanels::Main, button);
Expand All @@ -1299,7 +1295,6 @@ void CheckLevelButton()

void CheckLevelButtonUp()
{
const Point mainPanelPosition = GetMainPanel().position;
Rectangle button = LevelButtonRect;

SetPanelObjectPosition(UiPanels::Main, button);
Expand Down Expand Up @@ -1586,8 +1581,6 @@ void CheckMuteButtonUp()
if (!buttons.contains(MousePosition))
return;

const Point mainPanelPosition = GetMainPanel().position;

int off = (MousePosition.y - buttons.position.y) / (MuteButtonRect.size.height + MuteButtonPadding);

size_t playerId = 0;
Expand Down

0 comments on commit fe15ae3

Please sign in to comment.