version 1.187 | | version 1.188 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.187 2005/12/07 18:25:55 akirschbaum Exp $"; | | * "$Id: player.c,v 1.188 2005/12/10 14:27:10 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
y = lasty + freearr_y[dir]; | | y = lasty + freearr_y[dir]; |
| | |
mflags = get_map_flags(m, &m, x, y, &x, &y); | | mflags = get_map_flags(m, &m, x, y, &x, &y); |
blocked = GET_MAP_MOVE_BLOCK(m, x, y); | | blocked = (mflags & P_OUT_OF_MAP) ? MOVE_ALL : GET_MAP_MOVE_BLOCK(m, x, y); |
| | |
/* Space is blocked - try changing direction a little */ | | /* Space is blocked - try changing direction a little */ |
if ((mflags & P_OUT_OF_MAP) || ((OB_TYPE_MOVE_BLOCK(mon, blocked)) | | if ((mflags & P_OUT_OF_MAP) || ((OB_TYPE_MOVE_BLOCK(mon, blocked)) |