World_Bar_Check()
set category = "GM"
var/global/bccounter =0
for(var/mob/M in world)
if(M.key)
M.BarCheck()
bccounter +=1
usr<< "done.. checked [bccounter] users"
bccounter = 0
Problem description: when this is run (only GMs have this). it is suppose to scan the mobs in the world if it has a key it is suppose to make that mob run the BarCheck proc. However all this does it overload the game (im assuming) and freeze the world. I eventually have to close Dream Daemon to stop the freeze and restart. Whats wrong? i use a similar code for Who and works fine.