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

Comparing deliantra/server/common/object.C (file contents):
Revision 1.64 by root, Tue Dec 12 21:39:56 2006 UTC vs.
Revision 1.65 by root, Wed Dec 13 00:42:03 2006 UTC

586 } 586 }
587 } 587 }
588 } 588 }
589 589
590 update_ob_speed (dst); 590 update_ob_speed (dst);
591}
592
593object *
594object::clone ()
595{
596 object *neu = create ();
597 copy_to (neu);
598 return neu;
591} 599}
592 600
593/* 601/*
594 * If an object with the IS_TURNABLE() flag needs to be turned due 602 * If an object with the IS_TURNABLE() flag needs to be turned due
595 * to the closest player being on the other side, this function can 603 * to the closest player being on the other side, this function can
2518 src = src->head; 2526 src = src->head;
2519 2527
2520 prev = 0; 2528 prev = 0;
2521 for (part = src; part; part = part->more) 2529 for (part = src; part; part = part->more)
2522 { 2530 {
2523 tmp = object::create (); 2531 tmp = part->clone ();
2524 part->copy_to (tmp);
2525 tmp->x -= src->x; 2532 tmp->x -= src->x;
2526 tmp->y -= src->y; 2533 tmp->y -= src->y;
2527 2534
2528 if (!part->head) 2535 if (!part->head)
2529 { 2536 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines