version 1.60 | | version 1.61 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.60 2001/06/13 10:51:57 michtoen Exp $"; | | * "$Id: player.c,v 1.61 2001/06/13 12:51:58 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
| | |
int move_player(object *op,int dir) { | | int move_player(object *op,int dir) { |
#ifdef ENABLE_PLAYER_ANIMATION_8 | | int face, pick; |
int pick; | | |
#else | | if(op->contr->socket.newanim) |
int face = dir ? (dir - 1) / 2 : -1, pick; | | face = dir%8; |
#endif | | else |
| | face = dir ? (dir - 1) / 2 : -1; |
| | |
if(op->map == NULL || op->map->in_memory != MAP_IN_MEMORY) | | if(op->map == NULL || op->map->in_memory != MAP_IN_MEMORY) |
return 0; | | return 0; |
| | |
op->direction=0; | | op->direction=0; |
} | | } |
| | |
#ifdef ENABLE_PLAYER_ANIMATION_8 | | |
SET_ANIMATION(op,dir%8); | | |
#else | | |
if(face != -1) | | if(face != -1) |
SET_ANIMATION(op,face); | | SET_ANIMATION(op,face); |
#endif | | |
update_object(op); | | update_object(op); |
| | |
return 0; | | return 0; |
| | |
} | | } |
| | |
| | |
| | |