Re: [CODE] [Newbie] descriptor_data to char_data

From: Cervo (chrisf@PTD.NET)
Date: 07/13/98


This is a legitament question.  Try ch = d->character.  Also if ever you
have the ch struct and you need to use a descriptor_data struct use a d =
ch->desc;  I hope this isn't too confusing, if it is email me privately.


||      Great acts are made up of small deeds.   ||
||              -- Lao Tsu                       ||
||-----------------------------------------------||
||           Cervo the redoC retsaM              ||
||                chrisf@ptd.net                 ||
||            Molefudge.dyn.ml.org               ||
||    WEB PAGE:  http://home.ptd.net/~chrisf/    ||
||-----------------------------------------------||
||   If you cannot convince them, confuse them.  ||
||              -- Harry S. Truman               ||
\\\\\\\\\\\\\\\\\\\\\\\///////////////////////////
              \\\\\\\\\////////
                    \\\///
                      \/



On Sun, 12 Jul 1998, John Woods wrote:

>
> void update_roundtime(void)
> {
>         struct descriptor_data *d, *next_d;
>         struct char_data *ch;
>
>         log("For statement");
>         for (d = descriptor_list; d; d = next_d) {
>                 log("Next_d = d->next");
>                 next_d = d->next;
>!                 ch = d;             /* Line 1842 */
ch = d->character;
>                 log("Checking to make sure RT >= 0.");
>                 if (GET_RT(ch) < 0) GET_RT(ch) = 0;
>                 log("Subracting 1 from RT");
>                 if (GET_RT(ch) > 0) GET_RT(ch) -= 1;
>                 log("Done.");
>         }
> }
>
> Please flame me if yer gonna, not the list.
>
> Thanks,
> -Elrelet
>
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+
>
>


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