Skip to content

Commit

Permalink
Replace a use of deprecated gui functions
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Nov 16, 2019
1 parent 498a3e9 commit 3cadac1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -140,11 +140,11 @@ end
wml.variables["recruitedZombieType"] = "cancel" -- default value

if zExists==false then
wesnoth.show_message_box("", _ "There are no corpses available.", "")
gui.show_prompt("", _ "There are no corpses available.", "")
else
local returned = wesnoth.show_dialog(zombie_recruit_dialog, preshow, postshow)
if returned ~= -2 and sides[1].gold < recruitCost then
wesnoth.show_message_box("", _ "You do not have enough gold to recruit that unit", "")
gui.show_prompt("", _ "You do not have enough gold to recruit that unit", "")
elseif returned ~= -2 and (sides[1].gold ) >= recruitCost then
wml.variables["recruitedZombieType"] = recruitedType
wml.variables["recruitedZombieCost"] = recruitCost
Expand Down

0 comments on commit 3cadac1

Please sign in to comment.