version 1.58 | | version 1.59 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.58 2001/06/04 06:41:02 mwedel Exp $"; | | * "$Id: player.c,v 1.59 2001/06/11 04:13:23 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
| | |
int move_player(object *op,int dir) { | | int move_player(object *op,int dir) { |
| | #ifdef ENABLE_PLAYER_ANIMATION_8 |
| | int pick; |
| | #else |
int face = dir ? (dir - 1) / 2 : -1, pick; | | int face = dir ? (dir - 1) / 2 : -1, pick; |
| | #endif |
| | |
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; |
| | |
return 0; | | return 0; |
} | | } |
| | |
| | |