… | |
… | |
46 | for_all_maps (map) |
46 | for_all_maps (map) |
47 | /* If tmpname is null, it is probably a unique player map, |
47 | /* If tmpname is null, it is probably a unique player map, |
48 | * so don't save information on it. |
48 | * so don't save information on it. |
49 | */ |
49 | */ |
50 | if (map->in_memory != MAP_IN_MEMORY && map->tmpname) |
50 | if (map->in_memory != MAP_IN_MEMORY && map->tmpname) |
51 | { |
|
|
52 | /* the 0 written out is a leftover from the lock number for |
51 | /* the 0 written out is a leftover from the lock number for |
53 | * unique items and second one is from encounter maps. |
52 | * unique items and second one is from encounter maps. |
54 | * Keep using it so that old temp files continue |
53 | * Keep using it so that old temp files continue |
55 | * to work. |
54 | * to work. |
56 | */ |
55 | */ |
57 | fprintf (fp, "%s:%s:%ld:0:0:%d:0:%d\n", map->path, map->tmpname, |
56 | fprintf (fp, "%s:%s:%ld:0:0:%d:0:%d\n", map->path, map->tmpname, |
58 | (map->reset_time == (uint32) - 1 ? (long unsigned) -1 : map->reset_time - current_time), map->difficulty, map->darkness); |
57 | (map->reset_time == (uint32) - 1 ? (long unsigned) -1 : map->reset_time - current_time), map->difficulty, map->darkness); |
59 | } |
|
|
60 | |
58 | |
61 | fclose (fp); |
59 | fclose (fp); |
62 | } |
60 | } |
63 | |
61 | |
64 | void |
62 | void |