diff --git a/src/m_player_item_axe.c_inc b/src/m_player_item_axe.c_inc index 6f83fc62..0b298c98 100644 --- a/src/m_player_item_axe.c_inc +++ b/src/m_player_item_axe.c_inc @@ -22,4 +22,4 @@ void Player_actor_Item_draw_axe(ACTOR* actor, GAME* game){ player->update_item_rod_top_pos = FALSE; player->balloon_start_pos_set_flag = FALSE; -} \ No newline at end of file +} diff --git a/src/m_player_item_umbrella.c_inc b/src/m_player_item_umbrella.c_inc index e69de29b..07332ba5 100644 --- a/src/m_player_item_umbrella.c_inc +++ b/src/m_player_item_umbrella.c_inc @@ -0,0 +1,17 @@ +int Player_actor_Item_main_umbrella_normal(ACTOR* actor, GAME* game){ + Player_actor_Get_umbrella_p(actor,game); + return 0; +} + +void Player_actor_Item_draw_umbrella(ACTOR* actor, GAME* game){ + PLAYER_ACTOR* player = (PLAYER_ACTOR*)actor; + TOOLS_ACTOR* umbrella = (TOOLS_ACTOR*)Player_actor_Get_umbrella_p(actor,game); + + if(umbrella != NULL){ + Matrix_get(&umbrella->matrix_work); + umbrella->init_matrix = TRUE; + } + + player->update_item_rod_top_pos = FALSE; + player->balloon_start_pos_set_flag = FALSE; +}