Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix warnings #7428

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading