Update tron.lua

This commit is contained in:
LDDestroier
2018-11-27 17:57:10 -05:00
committed by GitHub
parent 5af7963e76
commit 7dc95dc214
+2 -3
View File
@@ -895,9 +895,6 @@ end
local game = function()
local outcome
local p, np
if argumentName then
player[you].name = argumentName
end
while true do
if isHost then
sleep(gameDelay)
@@ -970,6 +967,7 @@ local networking = function()
you, nou = nou, you
end
you, nou = nou, you
player[nou].name = msg.name or player[nou].name
transmit(port, {
player = player,
gameID = gamename,
@@ -1042,6 +1040,7 @@ local startGame = function()
gameID = gamename,
new = os.time(),
gameDelay = gameDelayInit,
name = argumentName or player[you].name,
grid = initGrid
})
rVal = parallel.waitForAny( pleaseWait, networking )