联网推进49,处理游戏结束的相关信息
This commit is contained in:
@@ -1756,7 +1756,11 @@ function Player.lose(P,force)
|
||||
end
|
||||
gameOver()
|
||||
P:newTask(#PLAYERS>1 and tick_lose or tick_finish)
|
||||
TASK.new(tick_autoPause)
|
||||
if GAME.net then
|
||||
wsWrite("D")
|
||||
else
|
||||
TASK.new(tick_autoPause)
|
||||
end
|
||||
if MARKING then
|
||||
P:showTextF(text.marking,0,-226,25,"appear",.4,.0626)
|
||||
end
|
||||
|
||||
@@ -280,6 +280,7 @@ function scene.socketRead(mes)
|
||||
elseif cmd=="F"then
|
||||
playing=false
|
||||
LOG.print(text.gameover,30,COLOR.green)
|
||||
resetGameData("n",playerData)
|
||||
else
|
||||
LOG.print("Illegal message: ["..mes.."]",30,COLOR.green)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user