Lua: implement to_first argument in dfhack.screen.dismiss()

This was mentioned in Lua API.rst, but never actually implemented.
develop
lethosor 2017-05-30 09:17:09 -04:00
parent e51c5fc2cc
commit f4e18b2d87
1 changed files with 2 additions and 1 deletions

@ -2144,7 +2144,8 @@ int screen_show(lua_State *L)
static int screen_dismiss(lua_State *L) static int screen_dismiss(lua_State *L)
{ {
df::viewscreen *screen = dfhack_lua_viewscreen::get_pointer(L, 1, false); df::viewscreen *screen = dfhack_lua_viewscreen::get_pointer(L, 1, false);
Screen::dismiss(screen); bool to_first = lua_toboolean(L, 2);
Screen::dismiss(screen, to_first);
return 0; return 0;
} }