… | |
… | |
586 | } |
586 | } |
587 | } |
587 | } |
588 | } |
588 | } |
589 | |
589 | |
590 | update_ob_speed (dst); |
590 | update_ob_speed (dst); |
|
|
591 | } |
|
|
592 | |
|
|
593 | object * |
|
|
594 | object::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 | { |