OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
[hengband/hengband.git] / src / cmd-eat.c
index a729874..ff13dc2 100644 (file)
@@ -10,6 +10,9 @@
 #include "angband.h"\r
 #include "object-hook.h"\r
 #include "avatar.h"\r
+#include "spells-status.h"\r
+#include "realm-hex.h"\r
+#include "player-status.h"\r
 \r
 /*!\r
  * @brief 食料を食べるコマンドのサブルーチン\r
@@ -38,7 +41,7 @@ void do_cmd_eat_food_aux(INVENTORY_IDX item)
 \r
        sound(SOUND_EAT);\r
 \r
-       p_ptr->energy_use = 100;\r
+       take_turn(p_ptr, 100);;\r
 \r
        /* Identity not known yet */\r
        ident = FALSE;\r