mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-15 04:30:28 +00:00
Fixed side-collisions being detected as ties
This commit is contained in:
parent
3576ee74f2
commit
becb067096
4
tron
4
tron
@ -664,9 +664,11 @@ local moveTick = function(doSend)
|
|||||||
for a = 1, #player do
|
for a = 1, #player do
|
||||||
if (a ~= i) and (player[a].x == p.x and player[a].y == p.y) then
|
if (a ~= i) and (player[a].x == p.x and player[a].y == p.y) then
|
||||||
p.dead = true
|
p.dead = true
|
||||||
player[a].dead = true
|
|
||||||
deadGuys[i] = true
|
deadGuys[i] = true
|
||||||
|
if (p.direction + 2) % 4 == player[a].direction % 4 then
|
||||||
|
player[a].dead = true
|
||||||
deadGuys[a] = true
|
deadGuys[a] = true
|
||||||
|
end
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user