diff --git a/src/client/game/ui_scripting/lua/context.cpp b/src/client/game/ui_scripting/lua/context.cpp index 6467eec5..c66bc61c 100644 --- a/src/client/game/ui_scripting/lua/context.cpp +++ b/src/client/game/ui_scripting/lua/context.cpp @@ -1187,7 +1187,11 @@ namespace ui_scripting::lua game_type["isdebugbuild"] = [](const game&) { - return DEBUG; +#ifdef DEBUG + return true; +#else + return false; +#endif }; struct player diff --git a/src/client/resources/updater.lua b/src/client/resources/updater.lua index ce58ce8e..0787bacf 100644 --- a/src/client/resources/updater.lua +++ b/src/client/resources/updater.lua @@ -97,7 +97,7 @@ stack = {} LUI.MenuBuilder.m_types_build["generic_waiting_popup_"] = function (menu, event) local oncancel = stack.oncancel local popup = LUI.MenuBuilder.BuildRegisteredType("waiting_popup", { - message_text = stack.text, + message_text = stack.text, isLiveWithCancel = true, cancel_func = function(...) local args = {...} @@ -116,9 +116,9 @@ end LUI.MenuBuilder.m_types_build["generic_yes_no_popup_"] = function() local callback = stack.callback local popup = LUI.MenuBuilder.BuildRegisteredType("generic_yesno_popup", { - popup_title = stack.title, - message_text = stack.text, - yes_action = function() + popup_title = stack.title, + message_text = stack.text, + yes_action = function() callback(true) end, no_action = function()