diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-18 22:52:04 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | f7840bdcc6490388bc8d99afab2ab36ba85cfe45 (patch) | |
tree | 7f8eb7933334cb52d97c44cd58c792b1c312ace5 /src/monster2.cc | |
parent | dd1e7a5ac938eb75ccbf20ea84954d63511f4611 (diff) |
Update HOOK_NEW_MONSTER to new-style hook
Diffstat (limited to 'src/monster2.cc')
-rw-r--r-- | src/monster2.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/monster2.cc b/src/monster2.cc index 1a63e8a8..6cb9a19a 100644 --- a/src/monster2.cc +++ b/src/monster2.cc @@ -2179,9 +2179,12 @@ s16b place_monster_one(int y, int x, int r_idx, int ego, bool_ slp, int status) } /* Are we allowed to continue ? */ - if (process_hooks(HOOK_NEW_MONSTER, "(d)", r_idx)) { - return 0; + struct hook_new_monster_in in = { r_idx }; + if (process_hooks_new(HOOK_NEW_MONSTER, &in, NULL)) + { + return 0; + } } /* Ego Uniques are NOT to be created */ |