Bug: Mapout function does not respect aassign settings
Danger: Low - Map generated from unexpected area
Found by: Remcon
Fixed by: Remcon
---
mapout.c, add_new_room_to_map
Locate:
for( i = ch->pcdata->r_range_lo; i <= ch->pcdata->r_range_hi; i++ )
Change to:
for( i = ch->pcdata->area->low_r_vnum; i <= ch->pcdata->area->hi_r_vnum; i++ )
mapout.c, num_rooms_avail
Locate:
for( i = ch->pcdata->r_range_lo; i <= ch->pcdata->r_range_hi; i++ )
Change to:
for( i = ch->pcdata->area->low_r_vnum; i <= ch->pcdata->area->hi_r_vnum; i++ )
mapout.c, map_to_rooms
Locate:
for( i = ch->pcdata->r_range_lo; i <= ch->pcdata->r_range_hi; i++ )
Change to:
for( i = ch->pcdata->area->low_r_vnum; i <= ch->pcdata->area->hi_r_vnum; i++ )
Remcon said:
The problem comes in that it likes to use the set vnums instead of the area they are assigned. So if they have no vnums assigned but have an area assigned they aren't able to make the map. If they have vnums assigned, but a different area assigned to them it will still use the assigned vnums instead of the assigned area vnums. This will fix the problems there.