1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-12-14 20:20:29 +00:00

Fixed side-collisions being detected as ties

This commit is contained in:
LDDestroier 2018-11-15 02:11:20 -05:00 committed by GitHub
parent 3576ee74f2
commit becb067096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
tron
View File

@ -664,9 +664,11 @@ local moveTick = function(doSend)
for a = 1, #player do
if (a ~= i) and (player[a].x == p.x and player[a].y == p.y) then
p.dead = true
player[a].dead = true
deadGuys[i] = true
if (p.direction + 2) % 4 == player[a].direction % 4 then
player[a].dead = true
deadGuys[a] = true
end
break
end
end