invaders: fix highscore display

this commit fixes the bug which lead to the highscore display not
disappearing if 'p' was pressed while showing the highscores
This commit is contained in:
Gregor Best 2008-11-08 20:43:00 +01:00
parent 1569818c5e
commit 5f250eedc2
1 changed files with 1 additions and 0 deletions

View File

@ -424,6 +424,7 @@ function game.highscore_add (score, name)
end end
function game.highscore (score) function game.highscore (score)
if gamedata.highscore.window and gamedata.highscore.window.screen then return false end
local fh = io.open(gamedata.cachedir.."/highscore_invaders", "r") local fh = io.open(gamedata.cachedir.."/highscore_invaders", "r")
if fh then if fh then