1 | |
|
|
2 | /* |
1 | /* |
3 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
4 | |
3 | |
5 | Copyright (C) 2001 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2001 Mark Wedel & Crossfire Development Team |
6 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
17 | |
16 | |
18 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
21 | |
20 | |
22 | The authors can be reached via e-mail at crossfire-devel@real-time.com |
21 | The authors can be reached via e-mail at <crossfire@schmorp.de> |
23 | */ |
22 | */ |
24 | |
23 | |
25 | /* Eneq(@csd.uu.se): Added weight-modifiers in environment of objects. |
24 | /* Eneq(@csd.uu.se): Added weight-modifiers in environment of objects. |
26 | sub/add_weight will transcend the environment updating the carrying |
25 | sub/add_weight will transcend the environment updating the carrying |
27 | variable. */ |
26 | variable. */ |
… | |
… | |
1625 | remove_ob (tmp); |
1624 | remove_ob (tmp); |
1626 | free_object (tmp); |
1625 | free_object (tmp); |
1627 | } |
1626 | } |
1628 | } |
1627 | } |
1629 | |
1628 | |
1630 | tmp1 = arch_to_object (find_archetype (arch_string)); |
1629 | tmp1 = arch_to_object (archetype::find (arch_string)); |
1631 | |
1630 | |
1632 | tmp1->x = op->x; |
1631 | tmp1->x = op->x; |
1633 | tmp1->y = op->y; |
1632 | tmp1->y = op->y; |
1634 | insert_ob_in_map (tmp1, op->map, op, 0); |
1633 | insert_ob_in_map (tmp1, op->map, op, 0); |
1635 | } |
1634 | } |