Completely removed the old x,y=$x1,$y1 default in [remove_item],

since when running into this rare exception (if the SLF doesn't
matching anything) it could be hard to figure out what happens.

[remove_item] does nothing in this case now.
This commit is contained in:
Anonymissimus 2011-09-01 19:06:56 +00:00
parent b5701a0d93
commit e8f6531a86

View File

@ -72,12 +72,6 @@ end
function wml_actions.remove_item(cfg)
local locs = wesnoth.get_locations(cfg)
if #locs == 0 then
local context = wesnoth.current.event_context
if context.x1 then
locs[1] = { context.x1, context.y1 }
end
end
for i, loc in ipairs(locs) do
remove_overlay(loc[1], loc[2], cfg.image)
end