Re: [CODE] do_dig modifications for OasisOLC

From: George Greer (greerga@circlemud.org)
Date: 01/09/01


On Mon, 8 Jan 2001, Peter Ajamian wrote:

>>         if(world[ch->in_room].dir_option[dir])
>>         {
>>                 send_to_char("An exit already exists in that direction.\r\n", ch);
>>                 return;
>>         }
>
>This is fine but you might want to consider that a builder may want to
>use dig to re-route existing exits.  You can accomplish that by removing
>this check (and the similar one further down) and instead putting the
>opposite test in before you allocate the memory.

I think he took my "check for clobbering existing exits" as "don't allow
overwriting exits."  I really meant "remember to clean up the previous exit
if you overwrite it."

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | 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