style: dedupe orig_

This commit is contained in:
あかニャン 2024-08-30 13:53:12 +00:00
parent b9df3055ce
commit da2232fe0e

View File

@ -18,16 +18,13 @@ class patch_Scene_32_PrePlayMusic_MusicSelect: Scene_32_PrePlayMusic_MusicSelect
// Walk around the warning dialog
if(_dialogBase == null && !_selector.isDecided && !_selector.isCanceled && (_selector.isPressed || _selector.isPressedDisabledElement)) {
MusicSelectViewData musicViewData = _selectList.getMusicViewData(_selector.selectIndex);
if(musicViewData != null && musicViewData.kind == MusicSelectViewData.Kind.Scenario &&
musicViewData.scenarioViewData.ngReason == ScenarioViewData.PlayNGReason.None) {
if(musicViewData != null && musicViewData.kind == MusicSelectViewData.Kind.Scenario
&& musicViewData.scenarioViewData.ngReason == ScenarioViewData.PlayNGReason.None) {
onFinishPlayScenario(0, false);
updateSystemUIPanel();
return;
}
else {
orig_Execute_Select();
}
} else {
orig_Execute_Select();
}
}
}