[CODE] [Newbie] descriptor_data to char_data

From: John Woods (JWoodsIII@AOL.COM)
Date: 07/12/98


I'm prolly gonna get flamed for this, but I dunno what to do here. I got this
in comm.c, and it's supposed to look for a char the same way as send_to_all
and stuff like that and then change the roundtime. But since the roundtime has
to be in char_data for a command I'm using, I need to translate it somehow.
Unfortunately, I couldn't figure out how to do that here. It gives me the
following warning:

comm.c(1842) : warning C4133: '=' : incompatible types - from 'struct
descriptor_data *' to 'struct char_data *'

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



This archive was generated by hypermail 2b30 : 12/15/00 PST