version 1.59 | | version 1.60 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.59 2004/01/20 14:52:52 tchize Exp $"; | | * "$Id: map.c,v 1.60 2004/02/11 08:09:22 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
int get_map_flags(mapstruct *oldmap, mapstruct **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny) | | int get_map_flags(mapstruct *oldmap, mapstruct **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny) |
{ | | { |
int newx, newy, retval=0; | | sint16 newx, newy; |
| | int retval=0; |
mapstruct *mp; | | mapstruct *mp; |
| | |
if (out_of_map(oldmap, x, y)) return P_OUT_OF_MAP; | | if (out_of_map(oldmap, x, y)) return P_OUT_OF_MAP; |
| | |
* Using this is more efficient of calling out_of_map | | * Using this is more efficient of calling out_of_map |
* and then figuring out what the real map is | | * and then figuring out what the real map is |
*/ | | */ |
mapstruct *get_map_from_coord(mapstruct *m, int *x, int *y) | | mapstruct *get_map_from_coord(mapstruct *m, sint16 *x, sint16 *y) |
{ | | { |
| | |
/* Simple case - coordinates are within this local | | /* Simple case - coordinates are within this local |