1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-08-30 01:17:59 +00:00

Update tron.lua

This commit is contained in:
LDDestroier
2018-11-27 17:57:10 -05:00
committed by GitHub
parent 5af7963e76
commit 7dc95dc214

View File

@@ -895,9 +895,6 @@ end
local game = function() local game = function()
local outcome local outcome
local p, np local p, np
if argumentName then
player[you].name = argumentName
end
while true do while true do
if isHost then if isHost then
sleep(gameDelay) sleep(gameDelay)
@@ -970,6 +967,7 @@ local networking = function()
you, nou = nou, you you, nou = nou, you
end end
you, nou = nou, you you, nou = nou, you
player[nou].name = msg.name or player[nou].name
transmit(port, { transmit(port, {
player = player, player = player,
gameID = gamename, gameID = gamename,
@@ -1042,6 +1040,7 @@ local startGame = function()
gameID = gamename, gameID = gamename,
new = os.time(), new = os.time(),
gameDelay = gameDelayInit, gameDelay = gameDelayInit,
name = argumentName or player[you].name,
grid = initGrid grid = initGrid
}) })
rVal = parallel.waitForAny( pleaseWait, networking ) rVal = parallel.waitForAny( pleaseWait, networking )