Document src/overworld.c

This commit is contained in:
cbt6
2022-07-17 04:07:09 +08:00
parent d60f819e5c
commit d6cb94895f
8 changed files with 253 additions and 271 deletions
+1 -2
View File
@@ -1278,8 +1278,7 @@ static bool8 FallWarpEffect_7(struct Task * task)
UnfreezeObjectEvents();
InstallCameraPanAheadCallback();
PlayerGetDestCoords(&x, &y);
// Seafoam Islands
if (sub_8055B38(MapGridGetMetatileBehaviorAt(x, y)) == TRUE)
if (MetatileBehavior_IsSurfableInSeafoamIslands(MapGridGetMetatileBehaviorAt(x, y)) == TRUE)
{
VarSet(VAR_TEMP_1, 1);
SetPlayerAvatarTransitionFlags(PLAYER_AVATAR_FLAG_SURFING);