1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-03-14 07:28:11 +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

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