Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, joeyfogas, Yandex

Members: 1
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Mapout and assigned areas
Forum Rules | Mark all | Recent Posts

Mapout and assigned areas
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Sep 21, 2006, 3:15 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

mapout.c
function add_new_room_to_map
change
   for( i = ch->pcdata->r_range_lo; i <= ch->pcdata->r_range_hi; i++ )

to
   for( i = ch->pcdata->area->low_r_vnum; i <= ch->pcdata->area->hi_r_vnum; i++ )


function num_rooms_avail
change
   for( i = ch->pcdata->r_range_lo; i <= ch->pcdata->r_range_hi; i++ )

to
   for( i = ch->pcdata->area->low_r_vnum; i <= ch->pcdata->area->hi_r_vnum; i++ )


function map_to_rooms
change
      for( i = ch->pcdata->r_range_lo; i <= ch->pcdata->r_range_hi; i++ )

to
   for( i = ch->pcdata->area->low_r_vnum; i <= ch->pcdata->area->hi_r_vnum; i++ )


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, You may want to toss in some checks where you think they are needed
to keep from ch->pcdata->area being NULL crashing your mud etc... Personaly I would safeguard each function, but
thats just me. Later and hope this makes it slightly better for everyone.
       
Pages:<< prev 1 next >>