From 611fc24518c435aac82b28b8a1ea0e832930325f Mon Sep 17 00:00:00 2001 From: Fernando Carmona Varo Date: Fri, 23 Oct 2015 19:24:49 +0200 Subject: Some improvements to the HUD --- ghost.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ghost.lua') diff --git a/ghost.lua b/ghost.lua index 7b7eea5..1c9e47e 100644 --- a/ghost.lua +++ b/ghost.lua @@ -92,7 +92,6 @@ for i in ipairs(ghosts) do -- play sound and reward player minetest.sound_play("mypacman_eatghost", {pos = boardcenter,max_hear_distance = 6, object=player, loop=false}) player:get_inventory():add_item('main', 'mypacman:cherrys') - mypacman.update_hud(self.gameid, player) else -- Ghost catches the player! gamestate.lives = gamestate.lives - 1 @@ -110,6 +109,7 @@ for i in ipairs(ghosts) do mypacman.game_reset(self.gameid, player) end end + mypacman.update_hud(self.gameid, player) else local vec = {x=p.x-s.x, y=p.y-s.y, z=p.z-s.z} -- cgit v1.2.3