1 | /* |
1 | /* |
2 | * static char *rcsid_player_c = |
2 | * static char *rcsid_player_c = |
3 | * "$Id: player.C,v 1.5 2006/08/26 08:44:06 root Exp $"; |
3 | * "$Id: player.C,v 1.6 2006/08/26 23:36:34 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
1034 | int x = op->x, y = op->y; |
1034 | int x = op->x, y = op->y; |
1035 | remove_statbonus(op); |
1035 | remove_statbonus(op); |
1036 | remove_ob (op); |
1036 | remove_ob (op); |
1037 | op->arch = get_player_archetype(op->arch); |
1037 | op->arch = get_player_archetype(op->arch); |
1038 | copy_object (&op->arch->clone, op); |
1038 | copy_object (&op->arch->clone, op); |
|
|
1039 | op->instantiate (); |
1039 | op->stats = op->contr->orig_stats; |
1040 | op->stats = op->contr->orig_stats; |
1040 | free_string (op->name); |
1041 | free_string (op->name); |
1041 | op->name = name; |
1042 | op->name = name; |
1042 | free_string(op->name_pl); |
1043 | free_string(op->name_pl); |
1043 | op->name_pl = add_string(name); |
1044 | op->name_pl = add_string(name); |