summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-21 15:53:16 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 12:07:56 +0100
commit9404aadb7e1e53b6d75cf52f41b54b48067d7a04 (patch)
treeadced03e9153e022978be4d08df9a821e27cff31
parent935809965a29657b55ca03e6be09b55fbd3abe13 (diff)
Remove old-style HOOK_EAT invocation
-rw-r--r--src/cmd6.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cmd6.cc b/src/cmd6.cc
index 05d87564..ba32f9e8 100644
--- a/src/cmd6.cc
+++ b/src/cmd6.cc
@@ -968,12 +968,7 @@ void do_cmd_eat_food(void)
/* Scripted foods */
hook_eat_in in = { o_ptr };
hook_eat_out out = { FALSE };
-
- if (process_hooks_ret(HOOK_EAT, "d", "(O)", o_ptr))
- {
- ident = process_hooks_return[0].num;
- }
- else if (process_hooks_new(HOOK_EAT, &in, &out))
+ if (process_hooks_new(HOOK_EAT, &in, &out))
{
ident = out.ident;
}