diff options
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index 5f69c4f1ec..81c2d16a18 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -720,11 +720,8 @@ bool prompt_eat_from_inventory(int slot) OPER_EAT ); } - if (which_inventory_slot == PROMPT_ABORT) - { - canned_msg( MSG_OK ); + if (prompt_failed(which_inventory_slot)) return (false); - } // This conditional can later be merged into food::can_ingest() when // expanded to handle more than just OBJ_FOOD 16mar200 {dlb} |