Re: [CODE] do_dig modifications for OasisOLC

From: Ron Martin (rmartin@deepthought.org)
Date: 01/08/01


Addendum:
<snip>
>         if(world[ch->in_room].dir_option[dir])
>         {
>                 send_to_char("An exit already exists in that direction.\r\n", ch);
>                 return;
>         }
<snip>
>         if(world[rroom].dir_option[rev_dir[dir]])
>         {
>                 send_to_char("An exit already exists from that direction.\r\n", ch);
>                 return;
>         }
<snip>

The if statements should be compared to -1:

if(world[ch->inroom].dir_option[dir] == -1)
{ ... }

if(world[rroom].dir_option[rev_dir[dir]] == -1)
{ ... }

I apologize for the error.

Ron

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST