diff options
| author | Ethan Roseman <ethteck@gmail.com> | 2020-03-22 20:39:12 -0400 |
|---|---|---|
| committer | Ethan Roseman <ethteck@gmail.com> | 2020-03-22 20:39:12 -0400 |
| commit | 5f3db569f9420e034da3a6da9fd1eaf011e31f22 (patch) | |
| tree | c950181c52da4ef72725c316ca7ba59c0e7f2d32 /src/overlays | |
| parent | 9408bc077009aec22f444937045641cf5a046fa7 (diff) | |
else if
Diffstat (limited to 'src/overlays')
| -rw-r--r-- | src/overlays/actors/ovl_Bg_Gate_Shutter/z_bg_gate_shutter.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/overlays/actors/ovl_Bg_Gate_Shutter/z_bg_gate_shutter.c b/src/overlays/actors/ovl_Bg_Gate_Shutter/z_bg_gate_shutter.c index 9e5f5f585..109f159e0 100644 --- a/src/overlays/actors/ovl_Bg_Gate_Shutter/z_bg_gate_shutter.c +++ b/src/overlays/actors/ovl_Bg_Gate_Shutter/z_bg_gate_shutter.c @@ -67,19 +67,15 @@ static void BgGateShutter_Destroy(BgGateShutter* this, GlobalContext* globalCtx) } static void func_8087828C(BgGateShutter* this, GlobalContext* globalCtx) { - if (this->unk_168 == 1) { - if (!(gSaveContext.inf_table[7] & 0x40)) { - this->unk_178 = 2; - this->actionFunc = (ActorFunc)func_80878300; - return; - } + if (this->unk_168 == 1 && !(gSaveContext.inf_table[7] & 0x40)) { + this->unk_178 = 2; + this->actionFunc = (ActorFunc)func_80878300; } - if (this->unk_168 == 2) { + else if (this->unk_168 == 2) { this->unk_178 = 2; this->actionFunc = (ActorFunc)func_80878300; - return; } - if (this->unk_168 < 0) { + else if (this->unk_168 < 0) { this->unk_178 = 2; this->actionFunc = (ActorFunc)func_808783D4; } |
