Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 7c7cf40

Browse files
committed
Const-ness
1 parent 059e06b commit 7c7cf40

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Menus/MetagameGUI.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6248,11 +6248,10 @@ void MetagameGUI::UpdateGameSizeLabels()
62486248
// Note that it will never be all or none of all the available scenes!
62496249
// TODO: Hook these constants up to settings!!
62506250
// How many scenes are there total
6251-
int totalCount = g_MetaMan.TotalScenePresets();
6252-
int minCount = std::clamp((playerCount * 3 / 2), 3, totalCount);
6253-
int maxCount = std::max(totalCount * 7 / 10, minCount);
6251+
const int totalCount = g_MetaMan.TotalScenePresets();
6252+
const int minCount = std::clamp((playerCount * 3 / 2), 3, totalCount);
62546253
m_pSizeSlider->SetMinimum(minCount);
6255-
m_pSizeSlider->SetMaximum(maxCount);
6254+
m_pSizeSlider->SetMaximum(std::max(totalCount * 7 / 10, minCount));
62566255
m_pSizeSlider->SetValueResolution(1);
62576256

62586257
char str[256];

0 commit comments

Comments
 (0)