Go to the documentation of this file.
20 FILE *fp1 = fopen(
"check_mapsave_1.map",
"w");
24 int height =
m->height;
29 fp1 = fopen(
"check_mapsave_1.map",
"r");
39 FILE *fp2 = fopen(
"check_mapsave_2.map",
"w");
44 return system(
"cmp check_mapsave_1.map check_mapsave_2.map");
47 int main(
int argc,
char *argv[]) {
49 puts(
"usage: check_mapsave PATH");
mapstruct * get_linked_map(void)
int main(int argc, char *argv[])
#define MAP_PLAYER_UNIQUE
static const flag_definition flags[]
int mapsave_test(const char *map)
static event_registration m
void free_map(mapstruct *m)
int save_objects(mapstruct *m, FILE *fp, FILE *fp2, int flag)
void load_objects(mapstruct *m, FILE *fp, int mapflags)
void allocate_map(mapstruct *m)
mapstruct * mapfile_load(const char *map, int flags)