Update tron.lua

This commit is contained in:
LDDestroier 2018-11-27 17:44:11 -05:00 committed by GitHub
parent b6f793bdd3
commit 2c03331fa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -982,8 +982,8 @@ local networking = function()
return gameID
elseif msg.gameID == gamename then
if type(msg.player) == "table" then
if not isHost then
if not isHost then
if type(msg.player) == "table" then
player[nou].name = msg.name or player[nou].name
player = msg.player
if msg.trail then
@ -993,12 +993,12 @@ local networking = function()
end
deadGuys = msg.deadGuys
os.queueEvent("move_tick")
elseif type(msg.keysDown) == "table" then
netKeysDown = msg.keysDown
netLastDirectionPressed = msg.lastDir
player[nou].putTrail = msg.putTrail
player[nou].name = msg.name or player[nou].name
end
elseif type(msg.keysDown) == "table" then
netKeysDown = msg.keysDown
netLastDirectionPressed = msg.lastDir
player[nou].putTrail = msg.putTrail
player[nou].name = msg.name or player[nou].name
end
end