This wont save when its supposed to but it doesnt crash the server neither. Any reasons why? Its the exact same thing as OBJSAVE by Super11 (name??)
var/list/objs = list ()
obj
var/lastx
var/lasty
var/lastz
area
var/lastx
var/lasty
var/lastz
world/New()
..()
if(fexists('Map.sav'))
var/savefile/F = new ("Map.sav")
F >> objs
for(var/obj/o in objs)
o.loc = locate(o.lastx, o.lasty, o.lastz)
objs.Cut()
return ..()
world/Del()
var/savefile/F = new("Map.sav")
for(var/obj/o in world.contents)
o.lastx = o.x
o.lasty = o.y
o.lastz = o.z
objs.Add(o)
F << objs
return ..()
Any reasons why?