diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2019-10-26 10:23:13 -0400 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2019-10-26 10:23:13 -0400 |
commit | 93f0703fcdda810062071fde4febe111146c18cc (patch) | |
tree | 241164c7e5fd5e71a9e3eca6eb8d6a918566d963 /src/item_use.c | |
parent | fd78afa5a7d4441fe0d76693e301deb6bc2557dc (diff) | |
parent | 1f569f0136952135a0e17fe22cf180c0e87dd007 (diff) |
Merge branch 'master' of github.com:pret/pokefirered into script_menu
Diffstat (limited to 'src/item_use.c')
-rw-r--r-- | src/item_use.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/item_use.c b/src/item_use.c index 679a3b8cc..873ce4ab4 100644 --- a/src/item_use.c +++ b/src/item_use.c @@ -42,6 +42,7 @@ #include "constants/maps.h" #include "constants/moves.h" #include "constants/songs.h" +#include "constants/map_types.h" EWRAM_DATA void (*sItemUseOnFieldCB)(u8 taskId) = NULL; @@ -162,7 +163,7 @@ void sub_80A1184(void) bool8 sub_80A1194(void) { - player_bitmagic(); + FreezeEventObjects(); ScriptContext2_Enable(); sub_807DC00(); CreateTask(sub_80A11C0, 10); @@ -259,7 +260,7 @@ bool8 ItemUseCheckFunc_Rod(void) { if (MetatileBehavior_IsSurfable(behavior) && !MapGridIsImpassableAt(x, y)) return TRUE; - if (MetatileBehavior_ReturnFalse_6(behavior) == TRUE) + if (MetatileBehavior_IsBridge(behavior) == TRUE) return TRUE; } return FALSE; |