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");
int mapsave_test(const char *map)
static const flag_definition flags[]
#define MAP_PLAYER_UNIQUE
void load_objects(mapstruct *m, FILE *fp, int mapflags)
static event_registration m
void allocate_map(mapstruct *m)
void free_map(mapstruct *m)
mapstruct * get_linked_map(void)
int main(int argc, char *argv[])
int save_objects(mapstruct *m, FILE *fp, FILE *fp2, int flag)
mapstruct * mapfile_load(const char *map, int flags)