version 1.19 | | version 1.20 |
---|
| | |
/* | | /* |
* static char *rcsid_global_h = | | * static char *rcsid_global_h = |
* "$Id: global.h,v 1.19 2001/06/13 12:52:07 michtoen Exp $"; | | * "$Id: global.h,v 1.20 2001/07/14 04:06:50 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
EXTERN godlink *first_god; | | EXTERN godlink *first_god; |
EXTERN racelink *first_race; | | EXTERN racelink *first_race; |
| | |
| | #define NROF_COMPRESS_METHODS 4 |
| | EXTERN char *uncomp[NROF_COMPRESS_METHODS][3]; |
/* | | /* |
* The editor uses these (will get them out of here later): | | * The editor uses these (will get them out of here later): |
*/ | | */ |
| | |
#endif | | #endif |
| | |
| | |
#define set_map(M,X,Y,C) ((M)->map[(X)+((M)->map_object->x*(Y))]=*(C)) | | |
#define get_map(M,X,Y) (&(M)->map[(X)+((M)->map_object->x*(Y))]) | | |
#define set_map_ob(M,X,Y,tmp) ((M)->map_ob[(X)+((M)->map_object->x*(Y))]=(tmp)) | | |
#define get_map_ob(M,X,Y) ((M)->map_ob[(X)+((M)->map_object->x*(Y))]) | | |
#define out_of_map(M,X,Y) ((X)<0||(X)>=(M)->map_object->x||(Y)<0||(Y)>=(M)->map_object->y) | | |
#define get_map_floor(M,X,Y) (&(M)->floor[(X)+((M)->map_object->x*(Y))]) | | |
#define set_map_floor(M,X,Y,C) ((M)->floor[(X)+((M)->map_object->x*(Y))]=*(C)) | | |
| | |
#define get_map_floor2(M,X,Y) (&(M)->floor2[(X)+((M)->map_object->x*(Y))]) | | |
#define set_map_floor2(M,X,Y,C) ((M)->floor2[(X)+((M)->map_object->x*(Y))]=*(C)) | | |
| | |
#define decrease_ob(xyz) decrease_ob_nr(xyz,1) | | #define decrease_ob(xyz) decrease_ob_nr(xyz,1) |
| | |
| | /* FREE_AND_CLEAR frees the pointer and then sets it to NULL. |
| | * This is generally done as a safety, and having this macro |
| | * makes the code a bit cleaner when doing so. |
| | */ |
| | #define FREE_AND_CLEAR(xyz) {free(xyz); xyz=NULL; } |
| | |
#ifdef CALLOC | | #ifdef CALLOC |
#undef CALLOC | | #undef CALLOC |
#endif | | #endif |