version 1.51 | | version 1.52 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.51 2003/01/14 07:29:25 mwedel Exp $"; | | * "$Id: map.c,v 1.52 2003/03/03 05:13:08 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
free_object(op); | | free_object(op); |
} | | } |
} | | } |
| | #ifdef MANY_CORES |
| | /* I see periodic cores on metalforge where a map has been swapped out, but apparantly |
| | * an item on that map was not saved - look for that condition and die as appropriate - |
| | * this leaves more of the map data intact for better debugging. |
| | */ |
| | for (op=objects; op!=NULL; op=op->next) { |
| | if (op->map == m) { |
| | LOG(llevDebug,"free_all_objects: object %s still on map after it should have been freed", op->name); |
| | abort(); |
| | } |
| | } |
| | #endif |
} | | } |
| | |
/* | | /* |
| | |
/* Simple case - coordinates are within this local | | /* Simple case - coordinates are within this local |
* map. | | * map. |
*/ | | */ |
| | |
if (*x>=0 && *x<MAP_WIDTH(m) && *y>=0 && *y < MAP_HEIGHT(m)) | | if (*x>=0 && *x<MAP_WIDTH(m) && *y>=0 && *y < MAP_HEIGHT(m)) |
return m; | | return m; |
| | |