mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 16:46:03 +00:00
Declare wesnoth.interface.remove_overlay directly instead of declaring it local and then assigning it
This commit is contained in:
parent
aa5ac6af29
commit
57bb4224b0
@ -24,7 +24,7 @@ local function add_overlay(x, y, cfg)
|
||||
})
|
||||
end
|
||||
|
||||
local function remove_overlay(x, y, name)
|
||||
function wesnoth.interface.remove_overlay(x, y, name)
|
||||
local items = scenario_items[x * 10000 + y]
|
||||
if not items then return end
|
||||
wesnoth.interface.remove_hex_overlay(x, y, name)
|
||||
@ -111,8 +111,6 @@ function wml_actions.store_items(cfg)
|
||||
end
|
||||
end
|
||||
|
||||
wesnoth.interface.remove_item = remove_overlay
|
||||
|
||||
function wesnoth.interface.add_item_image(x, y, name)
|
||||
add_overlay(x, y, { x = x, y = y, image = name })
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user