>     char_to_room(ch, port->obj_flags.value[0]);
change this to:
char_to_room(ch, real_room(port->obj_flags.value[0]));
char_to_room takes a rooms real number (not vnum), which also answers why
it works for 0, 1, and 2 (since that is both vnum and rnum)
siv
     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST