mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-23 07:26:55 +00:00
Update tron.lua
This commit is contained in:
parent
5af7963e76
commit
7dc95dc214
5
tron.lua
5
tron.lua
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user