This has to do with the respawn of a player. The while around the call

to map_respawn_player() is not necessary.
origin
stpohle 22 years ago
parent fb4f276976
commit 379fbcab52

@ -1,4 +1,4 @@
/* $Id: player.c,v 1.79 2004/02/08 00:56:01 stpohle Exp $
/* $Id: player.c,v 1.80 2004/02/08 22:34:31 stpohle Exp $
* player.c - everything what have to do with the player */
#include <SDL.h>
@ -877,10 +877,7 @@ void player_checkdeath (int pnr) {
player->pos.x = -1;
player->pos.y = -1;
while (player->pos.x == -1 && player->pos.y == -1) {
map_respawn_player(pnr);
}
if (player->pos.x != -1 && player->pos.y != -1) {
player->frame = 0;

Loading…
Cancel
Save