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
1 changed files with 4 additions and 2 deletions

6
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
deadGuys[a] = true
if (p.direction + 2) % 4 == player[a].direction % 4 then
player[a].dead = true
deadGuys[a] = true
end
break
end
end