if(dist <= 0 && mode == 1)
world<<"<b><font color = yellow><font size = 3>The submarine has made it back to safe waters!"
for(var/mob/M in world)if(M.client && M.ready)
M.exp+=100
M.Save()
world.Reboot()//I just changed this back actually
//world.Reboot() used to be the same indentation as M.Save() and M.exp+=100
This is the code I was using to give out experience to all players that were connected and have joined the game. In my single-player testing sessions it worked just as expected.
However, I have just noticed that it gives the experience out to one person, and then reboots. I didn't notice this right away because I have a lot of people that play so I figured they didn't have experience because they were new. It had to have worked at one point because other players DID get experience, and I just checked my older versions of this code and it seems to be the same. So I don't know why it isn't working now.