diff options
Diffstat (limited to 'src/dungeon.c')
-rw-r--r-- | src/dungeon.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/dungeon.c b/src/dungeon.c index fcca8a21..fd2cc546 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -13,6 +13,8 @@ #include "angband.h" #include "lua/lua.h" #include "tolua.h" +#include <assert.h> + extern lua_State* L; #define TY_CURSE_CHANCE 100 @@ -1345,14 +1347,8 @@ static void process_world(void) if (!t_ptr->countdown) { t_ptr->countdown = t_ptr->delay; - if (t_ptr->callback_c) - { - t_ptr->callback_c(); - } - if (t_ptr->callback) - { - call_lua(t_ptr->callback, "()", ""); - } + assert(t_ptr->callback != NULL); + t_ptr->callback(); } } |