From 18e545dfe88e9639b107e016df706de4eb22e933 Mon Sep 17 00:00:00 2001 From: y4my4my4m <8145020+y4my4my4m@users.noreply.github.com> Date: Wed, 31 May 2023 02:05:08 +0900 Subject: [PATCH] Cleanerer --- src/Home/PaletteEditor/PaletteEdit.ZC | 3 +-- src/Home/PaletteEditor/PaletteGod.ZC | 12 ++---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/Home/PaletteEditor/PaletteEdit.ZC b/src/Home/PaletteEditor/PaletteEdit.ZC index b6b5c21c..f9045e9c 100755 --- a/src/Home/PaletteEditor/PaletteEdit.ZC +++ b/src/Home/PaletteEditor/PaletteEdit.ZC @@ -433,8 +433,7 @@ public U0 PaletteEditor() LFBFlush; break; case 'R': - gr_palette[selected_color] = PaletteGod(FALSE, TRUE); - LFBFlush; + PaletteGod(FALSE, TRUE); break; case CH_CTRLI: PopUpOk("\n\n Use the arrows to select color\n\n # to manually input hex value","\n\n\n\t\tMade by y4my4m\n\n"); diff --git a/src/Home/PaletteEditor/PaletteGod.ZC b/src/Home/PaletteEditor/PaletteGod.ZC index fea5f2ec..329250f4 100755 --- a/src/Home/PaletteEditor/PaletteGod.ZC +++ b/src/Home/PaletteEditor/PaletteGod.ZC @@ -1,29 +1,21 @@ CBGR24 ColorGod(Bool seedUse=TRUE, Bool instant=TRUE) { // Generate a random color, seed-based or not - if (seedUse) Seed(GodPick); if (instant || seedUse) - { return RandI32 & 0xFFFFFF; - } - else { + else return GodPick & 0xFFFFFF; - } - } public U0 PaletteGod(Bool seedUse=TRUE, Bool instant=TRUE) { // Generate a random palette, seed-based or not I64 i; - for (i=0; i < 16; i++) - { gr_palette[i] = ColorGod(seedUse, instant); - LFBFlush; - } + LFBFlush; } // PaletteGod;