It should be only saving objs, but when I load, its loads mobs. All the players that were in my game when I saved it, are loaded.
Code:
proc
SaveObjects()
world << "Saving Map..please wait!"
var/savefile/F = new ("objects.sav")
var/list/L = new
for(var/obj/O in world)
O.saved_x = O.x
O.saved_y = O.y
O.saved_z = O.z
L += O
F[""] << L
world << "MAP SAVED!"
proc/LoadObjects()
world << "Loading Map..please wait!"
sleep(1)
var/savefile/F = new ("objects.sav")
var/list/L = new
F[""] >> L
if(!L) return
for(var/obj/O in world) if(O.loc||O.z!=1) del(O)
for(var/obj/O in L)
O.loc = locate(O.saved_x,O.saved_y,O.saved_z)
for(var/mob/Player/M in world)
if(!M.client)
del(M)
world << "MAP LOADED!"
P_S