diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-05-09 22:42:22 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-05-09 22:52:19 +0200 |
commit | 656d66ee0e61c74f2730e2fffbea0304129d319b (patch) | |
tree | 7c6bf56ccd77f1afb73029df90f3df32e662e720 /src/dungeon.c | |
parent | a5b78e910344f4277c110941145e9412a03039ef (diff) |
Lua: Remove Lua compat bits of timer_type
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(); } } |