From aa2ae43852a927693f44b0643e98d617a68bff86 Mon Sep 17 00:00:00 2001 From: Fernando Carmona Varo Date: Sat, 24 Oct 2015 22:12:45 +0200 Subject: Do not save state to disk anymore, instead properly end the game and move the player outside. Also other players won't be able to enter a game already in progress --- pacmine/ghost.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'pacmine/ghost.lua') diff --git a/pacmine/ghost.lua b/pacmine/ghost.lua index 7c7c374..adc106d 100644 --- a/pacmine/ghost.lua +++ b/pacmine/ghost.lua @@ -97,7 +97,6 @@ for i in ipairs(ghosts) do gamestate.lives = gamestate.lives - 1 if gamestate.lives < 1 then minetest.chat_send_player(gamestate.player_name,"Game Over") - player:moveto(vector.add(gamestate.pos,{x=0.5,y=0.5,z=-1.5})) pacmine.game_end(self.gameid) minetest.sound_play("pacmine_death", {pos = boardcenter,max_hear_distance = 20, object=player, loop=false}) -- cgit v1.2.3