version 1.14 | | version 1.15 |
---|
| | |
/* | | /* |
* static char *rcsid_move_c = | | * static char *rcsid_move_c = |
* "$Id: move.c,v 1.14 2001/10/31 07:00:24 garbled Exp $"; | | * "$Id: move.c,v 1.15 2001/11/04 20:22:55 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
LOG(llevError,"Trying to move NULL.\n"); | | LOG(llevError,"Trying to move NULL.\n"); |
return 0; | | return 0; |
} | | } |
/* If the space the player is trying to is out of the map, | | |
* bail now - we know it can't work. | | |
*/ | | |
if (out_of_map(op->map,op->x+freearr_x[dir],op->y+freearr_y[dir])) return 0; | | |
| | |
/* this function should now only be used on the head - it won't call itself | | /* this function should now only be used on the head - it won't call itself |
* recursively, and people calling us should pass the right part. | | * recursively, and people calling us should pass the right part. |
*/ | | */ |
| | |
op = op->head; | | op = op->head; |
} | | } |
| | |
| | /* If the space the player is trying to is out of the map, |
| | * bail now - we know it can't work. |
| | */ |
| | if (out_of_map(op->map,op->x+freearr_x[dir],op->y+freearr_y[dir])) return 0; |
| | |
| | |
/* Modified these to check for appropriate object anyplace on map | | /* Modified these to check for appropriate object anyplace on map |
* not just the top (stacking is less deterministic now). | | * not just the top (stacking is less deterministic now). |
* also now have it return 0 on both of these cases. The | | * also now have it return 0 on both of these cases. The |