mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 19:46:50 +00:00
Re-enable/fix put_unit deprecation warning
This commit is contained in:
parent
a84500fb8f
commit
058ec266cf
@ -2310,8 +2310,8 @@ int game_lua_kernel::intf_put_unit(lua_State *L)
|
||||
loc = u->get_location();
|
||||
if (!map().on_board(loc))
|
||||
return luaL_argerror(L, 1, "invalid location");
|
||||
} else {
|
||||
//WRN_LUA << "wesnoth.put_unit(x, y, unit) is deprecated. Use wesnoth.put_unit(unit, x, y) instead\n";
|
||||
} else if (unit_arg != 1) {
|
||||
WRN_LUA << "wesnoth.put_unit(x, y, unit) is deprecated. Use wesnoth.put_unit(unit, x, y) instead\n";
|
||||
}
|
||||
}
|
||||
else if (!lua_isnoneornil(L, unit_arg))
|
||||
|
Loading…
x
Reference in New Issue
Block a user