From 9fb6343e1722ab193c9a9b92861761ce402b3273 Mon Sep 17 00:00:00 2001 From: Prakxo Date: Sat, 7 Sep 2024 00:26:07 +0200 Subject: [PATCH] fix build --- include/m_name_table.h | 8 ++++++++ src/ef_kasamizu.c | 1 + 2 files changed, 9 insertions(+) diff --git a/include/m_name_table.h b/include/m_name_table.h index 4cc996ca..3d65771a 100644 --- a/include/m_name_table.h +++ b/include/m_name_table.h @@ -489,6 +489,14 @@ extern int mNT_check_unknown(mActor_name_t item_no); ((item) == GOLD_TREE_BEES) \ ) +#define IS_ITEM_PALM_TREE(item) ((item) >= TREE_PALM_SAPLING && (item) < TREE_PALM_FRUIT) + +#define IS_ITEM_TREE_STUMP(item) ((item >= TREE_STUMP001 && (item) <= TREE_STUMP004) || \ + (item) >= TREE_PALM_STUMP001 && (item) <= TREE_PALM_STUMP004 || \ + (item) >= CEDAR_TREE_STUMP001 && (item) <= CEDAR_TREE_STUMP004 || \ + (item) >= GOLD_TREE_STUMP001 && (item) <= GOLD_TREE_STUMP004 \ +) + #define IS_ITEM_SHAKEABLE_TREE(item) (IS_ITEM_MED_TREE(item) || IS_ITEM_LARGE_TREE(item) || IS_ITEM_FULL_TREE(item)) #define IS_ITEM_BEE_TREE(item) ((item) == TREE_BEES || (item) == CEDAR_TREE_BEES || (item) == GOLD_TREE_BEES) diff --git a/src/ef_kasamizu.c b/src/ef_kasamizu.c index 5e63d8bf..c02ccc0a 100644 --- a/src/ef_kasamizu.c +++ b/src/ef_kasamizu.c @@ -1,6 +1,7 @@ #include "ef_effect_control.h" #include "m_common_data.h" +#include "sys_matrix.h" static void eKasamizu_init(xyz_t pos, int prio, s16 angle, GAME* game, u16 item_name, s16 arg0, s16 arg1); static void eKasamizu_ct(eEC_Effect_c* effect, GAME* game, void* ct_arg);