diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-05-08 18:59:59 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-05-08 20:15:58 +0200 |
commit | 6ef98743b002c48fb3bf720fb07936e34926b313 (patch) | |
tree | b834dbbc9501533a29e612d9594c72e749105766 /src/dungeon.c | |
parent | 4275c9d3e7a44080997fce9974d442ba4f9f4a54 (diff) |
Lua: Move "Meta" spell functions to C
Diffstat (limited to 'src/dungeon.c')
-rw-r--r-- | src/dungeon.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/dungeon.c b/src/dungeon.c index ec2ab0e4..fcca8a21 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -1345,7 +1345,14 @@ static void process_world(void) if (!t_ptr->countdown) { t_ptr->countdown = t_ptr->delay; - call_lua(t_ptr->callback, "()", ""); + if (t_ptr->callback_c) + { + t_ptr->callback_c(); + } + if (t_ptr->callback) + { + call_lua(t_ptr->callback, "()", ""); + } } } |