diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-21 14:54:02 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:55 +0100 |
commit | f1df04c14389adb371279ba5b494dc843758fd8b (patch) | |
tree | f7a0f6a79280d5d6562f5a5795f6748a78165313 /src/cmd2.cc | |
parent | f2b09902812117053035d61b43c3baaa880bc8e4 (diff) |
Update HOOK_ENTER_DUNGEON to new-style hook
Diffstat (limited to 'src/cmd2.cc')
-rw-r--r-- | src/cmd2.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cmd2.cc b/src/cmd2.cc index 6e1b2245..38f7ac1d 100644 --- a/src/cmd2.cc +++ b/src/cmd2.cc @@ -478,10 +478,13 @@ void do_cmd_go_down(void) dungeon_info_type *d_ptr = &d_info[c_ptr->special]; /* Do the lua scripts refuse ? ;) */ - if (process_hooks(HOOK_ENTER_DUNGEON, "(d)", c_ptr->special)) { - dun_level = old_dun; - return; + struct hook_enter_dungeon_in in = { c_ptr->special }; + if (process_hooks_new(HOOK_ENTER_DUNGEON, &in, NULL)) + { + dun_level = old_dun; + return; + } } /* Ok go in the new dungeon */ |