--- deliantra/server/random_maps/standalone.C 2006/12/20 09:14:22 1.9 +++ deliantra/server/random_maps/standalone.C 2006/12/25 14:43:23 1.10 @@ -139,8 +139,8 @@ object *tmp, *above = NULL; int x, y; - for (x = 0; x < MAP_WIDTH (m); x++) - for (y = 0; y < MAP_HEIGHT (m); y++) + for (x = 0; x < m->width; x++) + for (y = 0; y < m->height; y++) for (tmp = GET_MAP_OB (m, x, y); tmp != NULL; tmp = above) { above = tmp->above; @@ -165,8 +165,8 @@ create_treasure (tmp->randomitems, tmp, GT_APPLY, m->difficulty, 0); } } - for (x = 0; x < MAP_WIDTH (m); x++) - for (y = 0; y < MAP_HEIGHT (m); y++) + for (x = 0; x < m->width; x++) + for (y = 0; y < m->height; y++) for (tmp = GET_MAP_OB (m, x, y); tmp != NULL; tmp = tmp->above) if (tmp->above && (tmp->type == TRIGGER_BUTTON || tmp->type == TRIGGER_PEDESTAL)) check_trigger (tmp, tmp->above);