version 1.21 | | version 1.22 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.21 2000/11/09 07:25:09 cvs Exp $"; | | * "$Id: player.c,v 1.22 2000/11/14 22:50:33 avogl Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#endif | | #endif |
*p->maplevel=0; | | *p->maplevel=0; |
| | |
| | strcpy(p->savebed_map, first_map_path); /* Init. respawn position */ |
| | p->bed_x=0, p->bed_y=0; |
| | |
op->contr=p; /* this aren't yet in archetype */ | | op->contr=p; /* this aren't yet in archetype */ |
op->speed_left=0.5; | | op->speed_left=0.5; |
op->speed=1.0; | | op->speed=1.0; |
| | |
} | | } |
| | |
| | |
/**************************************/ | | /****************************************/ |
/* */ | | /* */ |
/* Move the player to the beginning */ | | /* Move player to his current respawn- */ |
/* map.... */ | | /* position (usually last savebed) */ |
/* */ | | /* */ |
/**************************************/ | | /****************************************/ |
| | |
tmp=get_object(); | | tmp=get_object(); |
| | |
EXIT_PATH(tmp) = add_string(first_map_path); | | EXIT_PATH(tmp) = add_string(op->contr->savebed_map); |
| | EXIT_X(tmp) = op->contr->bed_x; |
| | EXIT_Y(tmp) = op->contr->bed_y; |
enter_exit(op,tmp); | | enter_exit(op,tmp); |
| | |
/* commenting this out seems to fix core dumps on some systems. */ | | /* commenting this out seems to fix core dumps on some systems. */ |