--- deliantra/server/random_maps/treasure.C 2006/12/12 20:53:03 1.8 +++ deliantra/server/random_maps/treasure.C 2006/12/12 21:39:56 1.9 @@ -211,7 +211,7 @@ i = find_first_free_spot (the_chest, map, x, y); if (i == -1) { - the_chest->destroy (0); + the_chest->destroy (); return NULL; } xl = x + freearr_x[i]; @@ -267,7 +267,7 @@ object *new_trap; new_trap = arch_to_object (the_trap->arch); - copy_object (new_trap, the_trap); + new_trap->copy_to (the_trap); new_trap->x = x; new_trap->y = y; insert_ob_in_ob (new_trap, the_chest); @@ -681,7 +681,7 @@ if (tmp->head) tmp = tmp->head; tmp->remove (); - tmp->destroy (0); + tmp->destroy (); tmp = get_map_ob (map, x, y); if (tmp == NULL) break; @@ -851,7 +851,7 @@ new_door->x = door->x; new_door->y = door->y; door->remove (); - door->destroy (0); + door->destroy (); doorlist[i] = new_door; insert_ob_in_map (new_door, map, NULL, 0); sprintf (keybuf, "%d", (int) RANDOM ()); @@ -878,7 +878,7 @@ door->face = wallface->face; if (!QUERY_FLAG (wallface, FLAG_REMOVED)) wallface->remove (); - wallface->destroy (0); + wallface->destroy (); } } }