summaryrefslogtreecommitdiff
path: root/src/metatile_behavior.c
diff options
context:
space:
mode:
authoraaaaaa123456789 <aaaaaa123456789@acidch.at>2020-10-26 12:16:36 -0300
committeraaaaaa123456789 <aaaaaa123456789@acidch.at>2020-10-26 12:16:36 -0300
commit1c3d75f6736445324fdcba31d5dbd858997e22c4 (patch)
treee0a94bdb8c2a3323048c9dc9540fa6b5af004c83 /src/metatile_behavior.c
parentfe40c0c4663d732c8ba9ca5f5e00b3c14a17d304 (diff)
parent585f313c646cb9494bed48395572daf1502978a5 (diff)
Merge branch 'master' into reverts
Diffstat (limited to 'src/metatile_behavior.c')
-rw-r--r--src/metatile_behavior.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/metatile_behavior.c b/src/metatile_behavior.c
index dde4de329..51cc65c22 100644
--- a/src/metatile_behavior.c
+++ b/src/metatile_behavior.c
@@ -968,6 +968,10 @@ bool8 MetatileBehavior_IsDiveable(u8 metatileBehavior)
bool8 MetatileBehavior_IsUnableToEmerge(u8 metatileBehavior)
{
+ // BUG: The player is unintentionally able to emerge on water doors.
+ // Also the narrower underwater door in the underwater tileset has the wrong metatile behavior. This causes the dive glitch.
+ // To fix that add || metatileBehavior == MB_WATER_DOOR to the if statement below and
+ // change the metatile behavior of the narrower water door with porymaps tileset editor.
if (metatileBehavior == MB_NO_SURFACING
|| metatileBehavior == MB_SEAWEED_NO_SURFACING)
return TRUE;