Browse Source

Fix death message

Eduardo Bart 8 years ago
parent
commit
2993853fe0
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      modules/game_playerdeath/playerdeath.lua

+ 2
- 4
modules/game_playerdeath/playerdeath.lua View File

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

Loading…
Cancel
Save