From f4e18b2d8747c3e8fd90233b5670379d7a6882fa Mon Sep 17 00:00:00 2001 From: lethosor Date: Tue, 30 May 2017 09:17:09 -0400 Subject: [PATCH] Lua: implement to_first argument in dfhack.screen.dismiss() This was mentioned in Lua API.rst, but never actually implemented. --- library/LuaApi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index 266677045..775e0a348 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -2144,7 +2144,8 @@ int screen_show(lua_State *L) static int screen_dismiss(lua_State *L) { 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; }