From 72df5135350c82030ca8a3119de27b1ffa3cb56c Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Fri, 16 Nov 2018 16:28:49 -0500 Subject: [PATCH] Synced 'player' at start of game --- tron | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tron b/tron index 335ea54..52546c6 100644 --- a/tron +++ b/tron @@ -857,13 +857,14 @@ local networking = function() if waitingForGame and (type(msg.new) == "number") then if msg.new < os.time() then - gamename = msg.gameID isHost = false + gamename = msg.gameID gameDelay = tonumber(msg.gameDelay) or gameDelayInit grid = msg.grid or deepCopy(initGrid) + player = msg.player or player else - you, nou = nou, you isHost = true + you, nou = nou, you end you, nou = nou, you transmit(port, {