proc
AutoStopTourney()
world << "<center><font size=3><font color = red><b><center>The tournament entry has now ended."
world << "<font size=1><font color = red><b>The following people are in the tournament"
for(var/mob/M in world)
if(M.tourny)
world << "[M]"
for(var/mob/M in world)
M.verbs -= new/mob/Tournament/verb/Enter_Tournament()
M.verbs -= new/mob/Tournament/verb/Leave_Tournament()
if(Entries.len < 2)
world<<"Not enough players for the tournament. Tournament is cancelled."
for(var/mob/M in world)
if(M.tourny)
M.loc=locate(140,57,1)
Winners.Remove(M)
Entries.Remove(M)
M.tourny=0
tournament=0
if(cycle==1)
spawn(36000) AutoStartTourney()
return
Tournament_AI()
Problem description:Ive recently encountered a problem that almost every proc in the code repeats itself while in the game. This proc above specificly, spams the text output with "The Following people are in the tournament:
[M]" like 50 times. the auto repop for when the world runs just repeats itself twice, and keeps doing it every 6 minutes.
I am at a loss here and can not figure out why this is happening.
Any suggestions would be much appreciated. Thanks in advance!