mirror of
https://github.com/LDDestroier/CC/
synced 2025-05-24 16:24:05 +00:00
Synced 'player' at start of game
This commit is contained in:
parent
0710a2fd8a
commit
72df513535
5
tron
5
tron
@ -857,13 +857,14 @@ local networking = function()
|
|||||||
|
|
||||||
if waitingForGame and (type(msg.new) == "number") then
|
if waitingForGame and (type(msg.new) == "number") then
|
||||||
if msg.new < os.time() then
|
if msg.new < os.time() then
|
||||||
gamename = msg.gameID
|
|
||||||
isHost = false
|
isHost = false
|
||||||
|
gamename = msg.gameID
|
||||||
gameDelay = tonumber(msg.gameDelay) or gameDelayInit
|
gameDelay = tonumber(msg.gameDelay) or gameDelayInit
|
||||||
grid = msg.grid or deepCopy(initGrid)
|
grid = msg.grid or deepCopy(initGrid)
|
||||||
|
player = msg.player or player
|
||||||
else
|
else
|
||||||
you, nou = nou, you
|
|
||||||
isHost = true
|
isHost = true
|
||||||
|
you, nou = nou, you
|
||||||
end
|
end
|
||||||
you, nou = nou, you
|
you, nou = nou, you
|
||||||
transmit(port, {
|
transmit(port, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user