summaryrefslogtreecommitdiff
path: root/pacmine/ghost.lua
diff options
context:
space:
mode:
authorFernando Carmona Varo <ferkiwi@gmail.com>2015-10-24 22:12:45 +0200
committerFernando Carmona Varo <ferkiwi@gmail.com>2015-10-24 22:12:45 +0200
commitaa2ae43852a927693f44b0643e98d617a68bff86 (patch)
tree35db2846b4baafa46488efb0c3e6d78db349f5db /pacmine/ghost.lua
parent239cc107532d1868b426b69968a1bc17603e7e33 (diff)
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
Diffstat (limited to 'pacmine/ghost.lua')
-rw-r--r--pacmine/ghost.lua1
1 files changed, 0 insertions, 1 deletions
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})