mirror of
https://github.com/zeldaret/oot
synced 2026-05-23 15:01:47 -04:00
MacOS ZAPD fixes (#606)
* Adding -Wno-return-type to GCC check for MacOS * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "0325ec161" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "0325ec161" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "605f6972e" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "605f6972e" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "6e6ad445a" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "6e6ad445a" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Rewrote func to avoid returns without values
This commit is contained in:
+11
-13
@@ -7160,26 +7160,24 @@ s32 Camera_CheckWater(Camera* camera) {
|
||||
if (camera->unk_150 > 0) {
|
||||
camera->unk_150--;
|
||||
camera->unk_152 |= 8;
|
||||
return;
|
||||
} else if (camera->globalCtx->sceneNum == 0x49) {
|
||||
camera->unk_152 |= 0x10;
|
||||
return;
|
||||
} else {
|
||||
camera->unk_152 |= 2;
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (camera->unk_14C & 0x100) {
|
||||
camera->unk_14C &= ~0x100;
|
||||
osSyncPrintf("kankyo changed water off, sound off\n");
|
||||
func_800706A0(camera->globalCtx);
|
||||
if (*quakeId != 0) {
|
||||
Quake_RemoveFromIdx(*quakeId);
|
||||
} else {
|
||||
if (camera->unk_14C & 0x100) {
|
||||
camera->unk_14C &= ~0x100;
|
||||
osSyncPrintf("kankyo changed water off, sound off\n");
|
||||
func_800706A0(camera->globalCtx);
|
||||
if (*quakeId != 0) {
|
||||
Quake_RemoveFromIdx(*quakeId);
|
||||
}
|
||||
camera->unk_150 = 0;
|
||||
camera->unk_152 = 0;
|
||||
}
|
||||
camera->unk_150 = 0;
|
||||
camera->unk_152 = 0;
|
||||
func_800F6828(0);
|
||||
}
|
||||
func_800F6828(0);
|
||||
// @BUG: doesn't always return a value, but sometimes does.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user