OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
[hengband/hengband.git] / src / cmd-eat.c
index 3c7ab73..ff13dc2 100644 (file)
@@ -11,6 +11,8 @@
 #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
@@ -39,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