From 5f250eedc2ce2d9551fb48b627a72d7b1ce9419a Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Sat, 8 Nov 2008 20:43:00 +0100 Subject: [PATCH] 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 --- lib/invaders.lua.in | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/invaders.lua.in b/lib/invaders.lua.in index 665b297c5..e5c054371 100644 --- a/lib/invaders.lua.in +++ b/lib/invaders.lua.in @@ -424,6 +424,7 @@ function game.highscore_add (score, name) end 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") if fh then