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.37 by root, Fri May 2 21:01:53 2008 UTC vs.
Revision 1.38 by root, Fri May 2 21:22:22 2008 UTC

940 sprintf (small_buf, "treasureoptions %d\n", treasureoptions_n); 940 sprintf (small_buf, "treasureoptions %d\n", treasureoptions_n);
941 strcat (buf, small_buf); 941 strcat (buf, small_buf);
942 } 942 }
943} 943}
944 944
945/* copy an object with an inventory... i.e., duplicate the inv too. */
946void
947copy_object_with_inv (object *src_ob, object *dest_ob)//TODO, replace by clone
948{
949 object *walk, *tmp;
950
951 src_ob->copy_to (dest_ob);
952
953 for (walk = src_ob->inv; walk; walk = walk->below)
954 {
955 tmp = object::create ();
956
957 walk->copy_to (tmp);
958 insert_ob_in_ob (tmp, dest_ob);
959 }
960}
961
962///////////////////////////////////////////////////////////////////////////// 945/////////////////////////////////////////////////////////////////////////////
963 946
964LayoutData::LayoutData (int w, int h) 947LayoutData::LayoutData (int w, int h)
965: w(w), h(h) 948: w(w), h(h)
966{ 949{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines