Removed an unneeded function introduced in 2012-04-16T20:49:02Z!nephro.wes@gmail.com
This commit is contained in:
parent
f54f2b0e75
commit
e810953bea
3 changed files with 2 additions and 16 deletions
|
@ -4,7 +4,7 @@ return {
|
|||
|
||||
init = function(ai)
|
||||
|
||||
if (not wesnoth.is_debug_mode()) then
|
||||
if (not wesnoth.game_config.debug) then
|
||||
wesnoth.message("LuaAI Error", "The LuaAI debug library is only available in debug mode")
|
||||
return
|
||||
end
|
||||
|
|
|
@ -261,9 +261,7 @@ ai_stdlib.init(ai, true)
|
|||
|
||||
|
||||
function my_ai:stage_hello()
|
||||
local debug_utils = wesnoth.require "~add-ons/Wesnoth_Lua_Pack/debug_utils.lua"
|
||||
wesnoth.message("dbg mode: " .. tostring(wesnoth.is_debug_mode()))
|
||||
--local mm = ai.get_dst_src()
|
||||
local debug_utils = wesnoth.require "~add-ons/Wesnoth_Lua_Pack/debug_utils.lua"
|
||||
--ai.debug.get_dst_src()
|
||||
--ai.debug.get_enemy_dst_src()
|
||||
debug_utils.dbms(ai,false,"variable",false)
|
||||
|
|
|
@ -1980,17 +1980,6 @@ static int intf_debug(lua_State* L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a bool value indicating whether the
|
||||
* game is launched in debug mode
|
||||
* - Ret 1: bool
|
||||
*/
|
||||
static int intf_is_debug_mode(lua_State *L)
|
||||
{
|
||||
lua_pushboolean(L, game_config::debug);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all messages from the chat window.
|
||||
*/
|
||||
|
@ -3490,7 +3479,6 @@ LuaKernel::LuaKernel(const config &cfg)
|
|||
{ "get_variable", &intf_get_variable },
|
||||
{ "get_village_owner", &intf_get_village_owner },
|
||||
{ "highlight_hex", &intf_highlight_hex },
|
||||
{ "is_debug_mode", &intf_is_debug_mode },
|
||||
{ "is_enemy", &intf_is_enemy },
|
||||
{ "match_location", &intf_match_location },
|
||||
{ "match_side", &intf_match_side },
|
||||
|
|
Loading…
Add table
Reference in a new issue