Skip to content

Commit

Permalink
Allowed dfhack.timeout tick events to be queued before a world is loa…
Browse files Browse the repository at this point in the history
…ded.
  • Loading branch information
expwnent committed Jun 27, 2014
1 parent 2827861 commit ecd75e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
DFHack future

Internals:
LuaApi
support queuing dfhack.timeout events before a world is loaded.
New scripts:
add-syndrome.lua
add a syndrome to a unit. many configurable options
Expand Down
6 changes: 0 additions & 6 deletions library/LuaTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1694,12 +1694,6 @@ int dfhack_timeout(lua_State *L)
luaL_checktype(L, 3, LUA_TFUNCTION);
lua_settop(L, 3);

if (mode > 0 && !Core::getInstance().isWorldLoaded())
{
lua_pushnil(L);
return 1;
}

// Compute timeout value
switch (mode)
{
Expand Down

0 comments on commit ecd75e9

Please sign in to comment.