summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_vrbox.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2023-11-02 19:58:01 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2023-11-02 19:58:01 -0400
commit082fb3b3fce95e296b34490b64f56e87c457f43d (patch)
tree119f7275b7a6c394f5ebfc3275b78591e4b4eb85 /src/d/actor/d_a_vrbox.cpp
parent41c125991666cad49f734f2fce2400d7a85bd638 (diff)
Add more player inlines
Diffstat (limited to 'src/d/actor/d_a_vrbox.cpp')
-rw-r--r--src/d/actor/d_a_vrbox.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/d/actor/d_a_vrbox.cpp b/src/d/actor/d_a_vrbox.cpp
index a0785edd..dcf159a3 100644
--- a/src/d/actor/d_a_vrbox.cpp
+++ b/src/d/actor/d_a_vrbox.cpp
@@ -94,7 +94,7 @@ static BOOL daVrbox_color_set(vrbox_class* i_this) {
/* 8015E6B8-8015E864 .text dungeon_rain_proc__Fv */
static void dungeon_rain_proc() {
- dScnKy_env_light_c* env_light = &g_env_light;
+ dScnKy_env_light_c* env_light = &g_env_light; // Probably a fakematch
u8 mode = 0;
int roomNo = dComIfGp_roomControl_getStayNo();
@@ -126,17 +126,18 @@ static void dungeon_rain_proc() {
if (env_light->mRainCountOrig != 250) {
dKy_change_colpat(1);
dKyw_rain_set(250);
- g_env_light.mThunderEff.mMode = 1;
+ env_light = &g_env_light;
+ env_light->mThunderEff.mMode = 1;
}
} else if (mode == 2) { // Thunder, but no rain
env_light = &g_env_light;
- if (g_env_light.mThunderEff.mMode == 0) {
+ if (env_light->mThunderEff.mMode == 0) {
dKy_change_colpat(1);
env_light->mThunderEff.mMode = 0xA;
}
} else { // No rain or thunder
env_light = &g_env_light;
- if (g_env_light.mThunderEff.mMode != 0) {
+ if (env_light->mThunderEff.mMode != 0) {
dKyw_rain_set(0);
env_light->mThunderEff.mMode = 0;
}