Tipologie server:
*Resursă folosită:
*ServerFiles utilizat:
*Syserr:
Poză:
*Detalii suplimentare: unde gasesc sa modific aceste functii in sursa este pt lag risipa sura c++
Cod: Selectaţi tot
void CHARACTER::RemoveGoodAffect()Cod: Selectaţi tot
void CHARACTER::RemoveGoodAffect()
{
for (itertype(GoodAffects) it = GoodAffects.begin(); it != GoodAffects.end(); ++it)
{
DWORD dwType = *it;
const CAffect* pkAff = FindAffect(dwType);
if (pkAff)
RemoveAffect(const_cast<CAffect*>(pkAff), false);
}
UpdatePacket();
}Cod: Selectaţi tot
void CHARACTER::RemoveBadAffect()Cod: Selectaţi tot
void CHARACTER::RemoveBadAffect()
{
for (itertype(BadAffects) it = BadAffects.begin(); it != BadAffects.end(); ++it)
{
DWORD dwType = *it;
const CAffect* pkAff = FindAffect(dwType);
if (pkAff)
{
RemoveAffect(const_cast<CAffect*>(pkAff), false);
switch (dwType)
{
case AFFECT_FIRE:
event_cancel(&m_pkFireEvent);
break;
case AFFECT_POISON:
event_cancel(&m_pkPoisonEvent);
break;
}
}
}
ComputePoints();
}




