I made a challenge verb for my game, everything works just fine except for the finish line turf. Sometimes it'll say both racers won, or that both racers got second, and sometimes it works just fine. Whenever I race it says both me and my car won, sometimes it says the winner got second, just does a bunch of crazy stuff. I dunno if I can be helped by just pasting the following code but, tell me if you need more.
Finish_Line
Entered(mob/M)
if(finished == 0)
world << "INFO: [M] has won the race!"
finished = 1
sleep(50)
M.loc = locate(2,2,1)
else
world << "INFO: [M] has placed second!"
finished = 0
sleep(50)
M.loc = locate(2,2,1)
~cam