Removed duplicate transparency in png file name in custom-dialog.
This commit is contained in:
parent
917f373a75
commit
c3b9cfabb0
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ local result = wesnoth.synchronize_choice(function()
|
|||
local function select()
|
||||
local i = wesnoth.get_dialog_value "the_list"
|
||||
local ut = wesnoth.unit_types[types[i]].__cfg
|
||||
local profile = string.gsub(ut.profile, "([^/]+)$", "transparent/%1")
|
||||
local profile = string.gsub(ut.profile, "([^/]+)$", "/%1")
|
||||
if wesnoth.get_dialog_value "flip" then profile = profile .. "~FL()" end
|
||||
wesnoth.set_dialog_value(profile, "the_image")
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue