Page 1 of 1

Question: Raid Info

Posted: Sun Jun 13, 2004 1:45 pm
by Tamian
I am having something unusual happen and wonder if others are as well.

Specifically:

Code: Select all

	if (pRaid->RaidMemberCount)
	{
		for (nMember=0;nMember<72;nMember++)
		{
			if (strlen(pRaid->RaidMember[nMember].Name))
			{
				lpAttendeeListNode = new CDKPRaidAttendeeListNode;

				if (lpAttendeeListNode)
				{
					// TODO: Find Group Member Number and MA
					lpAttendeeListNode->cStrName			 = pRaid->RaidMember[nMember].Name;
					lpAttendeeListNode->cStrBottedByName	= "";
					lpAttendeeListNode->cStrClass			= pRaid->RaidMember[nMember].Class;
					lpAttendeeListNode->cStrLevel			= pRaid->RaidMember[nMember].Level;
					lpAttendeeListNode->dwGroupNumber		= (pRaid->RaidMember[nMember].GroupNumber>11 ? 0 : pRaid->RaidMember[nMember].GroupNumber+1);
									lpAttendeeListNode->bIsGroupLeader		= (pRaid->RaidMember[nMember].GroupLeader ? true : false);
									lpAttendeeListNode->bIsRaidLeader		= (pRaid->RaidMember[nMember].RaidLeader ? true : false);
				
					AddAttendeeListNode(lpAttendeeListNode,false);
				}
			}
		}
	}
Now .. ignoring the fact I am storing this elsewhere .. I delete that list (its a linked list) and rebuild for each raid. The prob I am having is that I can not get correct info in the following conditions:

1- Seems to work fine when Raid is intially built.
2- Any transfer of leadership does not show
3- Leaving and comming back does not change the leader
4- Group numbers go to hell ....

Am I grabing the info from the wrong spot or was there a steath struct change?

Posted: Sun Jun 13, 2004 3:07 pm
by Teh_ish
Maybe I'm reading the code wrong(or it's outside the scope of that code), but it doesn't appear that you're looping it around to update it. You're only firing it off as a onetime deal, which would explain why it's not updating. But maybe I'm just not seeing something :)

Posted: Sun Jun 13, 2004 4:57 pm
by Tamian
Nah this is a function I call each time I want to pull in attendee's.