When the world boots up with a piece of furniture that was saved. there are like 15 tables when there is suppose to be one. Anyone got an idea why?
world/New()
..()
if(fexists("Players/Houses/Merchants.sav"))
var/savefile/F = new ("Players/Houses/Furniture.sav")
F >> dast
for(var/obj/o in dast)
o.loc = locate(o.lastx, o.lasty, o.lastz)
dast.Cut()
return ..()
world/Del()
var/savefile/F = new("Players/Houses/Furniture.sav")
for(var/obj/o in world)
if(o.furniture == 1)
o.lastx = o.x
o.lasty = o.y
o.lastz = o.z
dast.Add(o)
F << dast
return ..()
ID:148135
![]() Jun 26 2003, 5:29 pm
|
|
Shouldn't this be Furniture.sav?
That deletes the entire list. Are you sure you really want to do that after placing only one item? =)