proc/GameEnd()
var/list/L = list(world)
var/list/final = new
for(var/mob/M in world)
M.locked = 1
for(var/mob/N in L)
for(var/mob/N2 in L)
if(N == N2 || N2 == N)
continue
if(N.y > N2.y)
final += N
if(N2.y > N.y)
final += N2
if(N.y == N2.y)
final += N
final += N2
world << "Winners!"
for(var/mob/T in final)
world << "[T]"
Problem description:
This is supposed to output the person with the highest y position, However it returns nothing but 'Winners!'. How can i fix this?
Try this: