summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2022-10-31 16:28:03 -0500
committerGitHub <noreply@github.com>2022-10-31 22:28:03 +0100
commite6150ea8daa55c2c5435d0563f8dc43b7ad722c3 (patch)
tree804c794c3638df53e122f2da910a0911265f2bae /soh/src/code
parent087f42a82678c9d0fea86bd17856ef2753ac5c5f (diff)
Add cheat: hookshot everything (#1874)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_bgcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/z_bgcheck.c b/soh/src/code/z_bgcheck.c
index a141d9f13..e8721fdfb 100644
--- a/soh/src/code/z_bgcheck.c
+++ b/soh/src/code/z_bgcheck.c
@@ -4118,7 +4118,7 @@ u32 SurfaceType_GetEcho(CollisionContext* colCtx, CollisionPoly* poly, s32 bgId)
* SurfaceType Is Hookshot Surface
*/
u32 SurfaceType_IsHookshotSurface(CollisionContext* colCtx, CollisionPoly* poly, s32 bgId) {
- return SurfaceType_GetData(colCtx, poly, bgId, 1) >> 17 & 1;
+ return CVar_GetS32("gHookshotEverything", 0) || SurfaceType_GetData(colCtx, poly, bgId, 1) >> 17 & 1;
}
/**