--- deliantra/server/common/map.C 2006/08/28 16:12:59 1.11 +++ deliantra/server/common/map.C 2006/08/29 09:35:51 1.13 @@ -1,6 +1,6 @@ /* * static char *rcsid_map_c = - * "$Id: map.C,v 1.11 2006/08/28 16:12:59 root Exp $"; + * "$Id: map.C,v 1.13 2006/08/29 09:35:51 elmex Exp $"; */ /* @@ -897,6 +897,8 @@ */ else if (!strcmp(key,"oid")) { fp.get (m, atoi(value)); + } else if (!strcmp(key, "attach")) { + m->attach = add_string (value); } else if (!strcmp(key,"hp") || !strcmp(key, "enter_x")) { m->enter_x = atoi(value); } else if (!strcmp(key,"sp") || !strcmp(key, "enter_y")) { @@ -949,8 +951,6 @@ m->sky = atoi(value); } else if (!strcmp(key, "nosmooth")) { m->nosmooth = atoi(value); - } else if (!strcmp(key, "safe_map")) { - m->safe_map = atoi(value); } else if (!strncmp(key,"tile_path_", 10)) { int tile=atoi(key+10); @@ -1056,7 +1056,7 @@ if (!MAP_DIFFICULTY(m)) MAP_DIFFICULTY(m)=calculate_difficulty(m); set_map_reset_time(m); - INVOKE_MAP (INSTANTIATE, m); + m->instantiate (); return (m); } @@ -1329,8 +1329,6 @@ fprintf (fp, "sky %d\n", m->sky); if (m->nosmooth) fprintf (fp, "nosmooth %d\n", m->nosmooth); - if (m->safe_map) - fprintf (fp, "safe_map %d\n", m->safe_map); /* Save any tiling information, except on overlays */ if (flag != 2) @@ -1338,6 +1336,7 @@ if (m->tile_path[i]) fprintf (fp, "tile_path_%d %s\n", i + 1, m->tile_path[i]); + fp.put (m); fprintf (fp, "end\n"); /* In the game save unique items in the different file, but