1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-03-13 15:08:09 +00:00

Update tron

This commit is contained in:
LDDestroier 2018-11-15 00:37:02 -05:00 committed by GitHub
parent 331743820f
commit 4f62c96dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
tron
View File

@ -682,9 +682,6 @@ local setDirection = function(keylist, p, checkDir)
end
end
-- to counter P2's ability to turn twice in one tick
local dlDirection
local game = function()
local outcome
local p, np
@ -696,7 +693,7 @@ local game = function()
setDirection(keysDown, p)
setDirection(netKeysDown, np)
else
setDirection(keysDown, p, dlDirection)
setDirection(keysDown, p)
end
if keysDown[control.lookLeft] then
@ -766,7 +763,6 @@ local networking = function()
elseif msg.gameID == gamename then
if not isHost then
player = msg.player
dlDirection = player[you].direction
trail = msg.trail
deadGuys = msg.deadGuys
elseif type(msg.keysDown) == "table" then