Removed duplicate transparency in png file name in custom-dialog.

This commit is contained in:
Thonsew 2011-09-21 21:44:51 +00:00
parent 917f373a75
commit c3b9cfabb0

View file

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