Fix death message

This commit is contained in:
Eduardo Bart 2012-07-30 21:57:31 -03:00
parent a1fb373b1b
commit 2993853fe0
1 changed files with 2 additions and 4 deletions

View File

@ -27,10 +27,8 @@ function display()
end
function displayDeadMessage()
local advanceLabel = modules.game_interface.getMapPanel():recursiveGetChildById('centerAdvance')
if advanceLabel:isVisible() then
return
end
local advanceLabel = modules.game_interface.getRootPanel():recursiveGetChildById('middleCenterLabel')
if advanceLabel:isVisible() then return end
modules.game_textmessage.displayGameMessage(tr('You are dead.'))
end