mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 21:05:52 +00:00
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:
parent
b5701a0d93
commit
e8f6531a86
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user