ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/random_map.C
(Generate patch)

Comparing deliantra/server/random_maps/random_map.C (file contents):
Revision 1.6 by root, Fri Sep 29 20:12:32 2006 UTC vs.
Revision 1.7 by root, Tue Dec 12 21:39:56 2006 UTC

990void 990void
991copy_object_with_inv (object *src_ob, object *dest_ob) 991copy_object_with_inv (object *src_ob, object *dest_ob)
992{ 992{
993 object *walk, *tmp; 993 object *walk, *tmp;
994 994
995 copy_object (src_ob, dest_ob); 995 src_ob->copy_to (dest_ob);
996 996
997 for (walk = src_ob->inv; walk != NULL; walk = walk->below) 997 for (walk = src_ob->inv; walk != NULL; walk = walk->below)
998 { 998 {
999 tmp = get_object (); 999 tmp = object::create ();
1000 copy_object (walk, tmp); 1000 walk->copy_to (tmp);
1001 insert_ob_in_ob (tmp, dest_ob); 1001 insert_ob_in_ob (tmp, dest_ob);
1002 } 1002 }
1003} 1003}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines