Closed Doors in exits

example: [Exits: (north) east west]
The (north) being the closed door.

Took me long enough to come up with this one after I heard one of
my builders telling me how he would like to see closed doors in
the do_look function. I think I've also seen this done a while back
but never found out how they did it.. Guess it goes something like this:

All of this snippet is apart of act_info.c and is
under function do_exits ONLY.

find:
    char buf[MAX_STRING_LENGTH];

and add:
    char buf2[MAX_STRING_LENGTH];

Look for this line:
        &&   can_see_room(ch,pexit->u1.to_room)
and add a ')' at the end example:
        &&   can_see_room(ch,pexit->u1.to_room) )
Then delete the next line which should be:
        &&   !IS_SET(pexit->exit_info, EX_CLOSED) )

Go down a few lines to 
        found = TRUE;
and add:
        if ( IS_SET(pexit->exit_info, EX_CLOSED) )
        {
           sprintf( buf2, "(%s)", dir_name[door] );
        }

Then DIRECTLY under: 
            if ( fAuto )
            {
                strcat( buf, " " );
 
add:
               if ( IS_SET(pexit->exit_info, EX_CLOSED) )
               {
                strcat( buf, buf2 );
                continue;
               }

That's all she wrote... No credits please I'm sure many 
have done this on their MUD already just wanted to make 
it available for those who want the easy way out of 
something they were already going to do. This would probably
be VERY easily customizable to add lets say Immortals only
able to see closed exits. If you can't figure that one out
e-mail me. I'll tell you how to do it. =o)
If you have any questions feel free to e-mail.
Mallyrn of Aeternitas
aeternitas@programmer.net