Skip to content

Commit bb9640b

Browse files
authored
small change
i forgot to clear uiPostfix
1 parent 1c59813 commit bb9640b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

source/states/PlayState.hx

+5-6
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,13 @@ class PlayState extends MusicBeatState
123123
@:noCompletion
124124
static function set_stageUI(value:String):String
125125
{
126-
stageUI = value;
127-
if (stageUI != "normal")
126+
uiPrefix = uiPostfix = "";
127+
if (value != "normal")
128128
{
129-
uiPrefix = stageUI.split("-pixel")[0].trim();
130-
if (PlayState.isPixelStage) uiPostfix = "-pixel";
129+
uiPrefix = value.split("-pixel")[0].trim();
130+
if (value.endsWith("-pixel")) uiPostfix = "-pixel";
131131
}
132-
else uiPrefix = uiPostfix = "";
133-
return stageUI;
132+
return stageUI = value;
134133
}
135134

136135
@:noCompletion

0 commit comments

Comments
 (0)