--- deliantra/server/common/map.C 2006/08/28 16:12:59 1.11 +++ deliantra/server/common/map.C 2006/08/28 16:52:51 1.12 @@ -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.12 2006/08/28 16:52:51 root 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")) { @@ -1056,7 +1058,7 @@ if (!MAP_DIFFICULTY(m)) MAP_DIFFICULTY(m)=calculate_difficulty(m); set_map_reset_time(m); - INVOKE_MAP (INSTANTIATE, m); + m->instantiate (); return (m); } @@ -1338,6 +1340,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