summaryrefslogtreecommitdiff
path: root/src/dungeon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dungeon.c')
-rw-r--r--src/dungeon.c9
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, "()", "");
+ }
}
}