--- deliantra/server/common/map.c 2006/03/07 13:44:42 1.7 +++ deliantra/server/common/map.c 2006/03/28 06:54:31 1.9 @@ -592,14 +592,12 @@ */ void save_objects (mapstruct *m, FILE *fp, FILE *fp2, int flag) { int i, j = 0,unique=0; - object *op, *otmp; + object *op; /* first pass - save one-part objects */ for(i = 0; i < MAP_WIDTH(m); i++) for (j = 0; j < MAP_HEIGHT(m); j++) { unique=0; - for(op = get_map_ob (m, i, j); op; op = otmp) { - otmp = op->above; - + for(op = get_map_ob (m, i, j); op; op = op->above) { if (QUERY_FLAG(op,FLAG_IS_FLOOR) && QUERY_FLAG(op, FLAG_UNIQUE)) unique=1; @@ -681,7 +679,7 @@ fatal(OUT_OF_MEMORY); } -/* Creatures and returns a map of the specific size. Used +/* Create and returns a map of the specific size. Used * in random map code and the editor. */ mapstruct *get_empty_map(int sizex, int sizey) { @@ -1152,7 +1150,7 @@ /* This goes through map 'm' and removed any unique items on the map. */ static void delete_unique_items(mapstruct *m) { - int i,j,unique=0; + int i,j,unique; object *op, *next; for(i=0; i