ID:261554
 
this proc just stops working, generates no errors or anything... jsut stops working.
proc/population()
for(var/mob/M as mob in world)
if(istype(M,/mob/pc))
var/pop=round(((M.medicine+M.education+M.police)/5)+rand(10,35))
var/popp=round((M.medicine+M.education+M.police)*(M.foodrate/200))
var/poppp=round(pop+popp)
M.population+=poppp
M.PopIncrease=0
M.PopYearly+=poppp
M.PopIncrease+=poppp
if(M.population>M.maxpop)
M.population=M.maxpop
return

it'll work fine for awhile but then I getp eople complaining it stopped working and their population isn't going up or down!! What's going on??
Jon Snow wrote:
it'll work fine for awhile but then I getp eople complaining it stopped working and their population isn't going up or down!! What's going on??

You're using "return" to jump out of the proc before the loop finishes, so only one player gets updated.

Lummox JR