Skip to content

Commit 752ed2a

Browse files
authored
fixing wind editor to still function during event wind priority
1 parent bf4da42 commit 752ed2a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

source/menus/scene_menu.cpp

+11-1
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ const char* get_chart_set_str() {
7878

7979
void updateWindDir() {
8080
s16 wind_dir = dkankyo_getWindDir();
81+
8182

8283
u8 wIndex = 0;
84+
int eventWindCheck = g_env_light.mWind.mEvtWindSet;
8385

8486
if (wind_dir == -32768) {
8587
wIndex = 0;
@@ -114,7 +116,15 @@ void updateWindDir() {
114116
else if (wIndex == 8) {
115117
wIndex = 0;
116118
}
117-
dkankyo_setWindDir(windDirs[wIndex]);
119+
120+
if (eventWindCheck != 0xFF){
121+
dKyw_tact_wind_set_go();
122+
dkankyo_setWindDir(windDirs[wIndex]);
123+
g_env_light.mWind.mEvtWindSet = eventWindCheck;
124+
}
125+
else{
126+
dkankyo_setWindDir(windDirs[wIndex]);
127+
}
118128
}
119129

120130

0 commit comments

Comments
 (0)