Re-enable/fix put_unit deprecation warning

This commit is contained in:
Celtic Minstrel 2016-03-14 13:28:38 -04:00
parent a84500fb8f
commit 058ec266cf

View File

@ -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))