1 | /* |
1 | /* |
2 | * static char *rcsid_map_c = |
2 | * static char *rcsid_map_c = |
3 | * "$Id: map.C,v 1.6 2006/08/21 02:55:10 elmex Exp $"; |
3 | * "$Id: map.C,v 1.7 2006/08/21 02:58:22 elmex Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
1330 | * If unique map, save files in the proper destination (set by |
1330 | * If unique map, save files in the proper destination (set by |
1331 | * player) |
1331 | * player) |
1332 | */ |
1332 | */ |
1333 | if ((flag == 0 || flag == 2) && !m->unique && !m->templatemap) { |
1333 | if ((flag == 0 || flag == 2) && !m->unique && !m->templatemap) { |
1334 | sprintf (buf,"%s.v00",create_items_path (m->path)); |
1334 | sprintf (buf,"%s.v00",create_items_path (m->path)); |
1335 | LOG(llevDebug,"Saving unique items of map %s to %s\n", m->path, buf); |
|
|
1336 | sprintf (buf_s, "%s~", buf); |
1335 | sprintf (buf_s, "%s~", buf); |
1337 | if ((fp2 = fopen (buf_s, "w")) == NULL) { |
1336 | if ((fp2 = fopen (buf_s, "w")) == NULL) { |
1338 | LOG(llevError, "Can't open unique items file %s\n", buf_s); |
1337 | LOG(llevError, "Can't open unique items file %s\n", buf_s); |
1339 | } |
1338 | } |
1340 | if (flag == 2) |
1339 | if (flag == 2) |