Re: [DOORBASH] [CODE] [YOWELCOME]

From: George (greerga@CIRCLEMUD.ORG)
Date: 10/25/98


On Sun, 25 Oct 1998, Christopher Avans wrote:

>ACMD(do_doorbash)
>/* BURU 5/12/97 */
>/*Changed to a skill to allow multi_assigning to races in class.c */
>/*Banyal*/
>#define EXITK(room, dir)                (world[room].dir_option[dir])
>#define OPEN_DOORK(room, door) (TOGGLE_BIT(EXITK(room, door)->exit_info, EX_CLOSED))

These should be the real macros, truely.  Hm, will see about changing.

>  if (*arg){
>    switch (*arg) {
>    case 'n':
>    case 'N':
>      dir = 0;
>      break;
>    case 'e':
>    case 'E':
>      dir = 1;
>      break;
[...other convoluted switch cases deleted...]

search_block(). Read. Use. Simple. act.movement.c. find_door().

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


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