Remove magic numbers and fix formatting.

This commit is contained in:
Christopher Leggett 2023-05-25 15:35:38 -04:00
parent 8f5538a700
commit 13513345bf
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79
2 changed files with 2 additions and 2 deletions

View File

@ -2932,7 +2932,7 @@ namespace Settings {
// Random Key Rings
if (KeyRings.Is(KEYRINGS_RANDOM) || KeyRings.Is(KEYRINGS_RANDOM_COUNT)) {
auto keyRings = keyRingOptions;
if (GerudoFortress.Is(0) && GerudoKeys.IsNot(0)) {
if (GerudoFortress.Is(GERUDOFORTRESS_NORMAL) && GerudoKeys.IsNot(GERUDOKEYS_VANILLA)) {
keyRings.push_back(&RingFortress);
}
int keyRingCount = KeyRings.Is(KEYRINGS_RANDOM_COUNT) ? KeyRingsRandomCount.Value<uint8_t>() : Random(0, keyRings.size());

View File

@ -3168,7 +3168,7 @@ void DrawRandoEditor(bool& open) {
static int maxKeyringCount;
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)) {
ImGui::End();
return;