Remove magic numbers and fix formatting.
This commit is contained in:
@@ -2932,7 +2932,7 @@ namespace Settings {
|
|||||||
// Random Key Rings
|
// Random Key Rings
|
||||||
if (KeyRings.Is(KEYRINGS_RANDOM) || KeyRings.Is(KEYRINGS_RANDOM_COUNT)) {
|
if (KeyRings.Is(KEYRINGS_RANDOM) || KeyRings.Is(KEYRINGS_RANDOM_COUNT)) {
|
||||||
auto keyRings = keyRingOptions;
|
auto keyRings = keyRingOptions;
|
||||||
if (GerudoFortress.Is(0) && GerudoKeys.IsNot(0)) {
|
if (GerudoFortress.Is(GERUDOFORTRESS_NORMAL) && GerudoKeys.IsNot(GERUDOKEYS_VANILLA)) {
|
||||||
keyRings.push_back(&RingFortress);
|
keyRings.push_back(&RingFortress);
|
||||||
}
|
}
|
||||||
int keyRingCount = KeyRings.Is(KEYRINGS_RANDOM_COUNT) ? KeyRingsRandomCount.Value<uint8_t>() : Random(0, keyRings.size());
|
int keyRingCount = KeyRings.Is(KEYRINGS_RANDOM_COUNT) ? KeyRingsRandomCount.Value<uint8_t>() : Random(0, keyRings.size());
|
||||||
|
|||||||
@@ -3168,7 +3168,7 @@ void DrawRandoEditor(bool& open) {
|
|||||||
static int maxKeyringCount;
|
static int maxKeyringCount;
|
||||||
static bool disableGFKeyring = false;
|
static bool disableGFKeyring = false;
|
||||||
|
|
||||||
ImGui::SetNextWindowSize(ImVec2(920, 600), ImGuiCond_FirstUseEver);
|
ImGui::SetNextWindowSize(ImVec2(920, 600), ImGuiCond_FirstUseEver);
|
||||||
if (!ImGui::Begin("Randomizer Editor", &open, ImGuiWindowFlags_NoFocusOnAppearing)) {
|
if (!ImGui::Begin("Randomizer Editor", &open, ImGuiWindowFlags_NoFocusOnAppearing)) {
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user