i found this case in HB2 Hg srcs :
Code: Select all
case 15:
dX = m_pDelayEventList[i]->m_dX;
dY = m_pDelayEventList[i]->m_dY;
for (ix = dX - 8; ix <= dX + 8; ix++)
for (iy = dY - 8; iy <= dY + 8; iy++) {
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwnerH, &cOwnerType, ix, iy);
if (sOwnerH != NULL) {
switch (cOwnerType) {
case DEF_OWNERTYPE_PLAYER:
if (m_pClientList[sOwnerH] == NULL) return;
if (m_pClientList[sOwnerH]->m_cMagicEffectStatus[ DEF_MAGICTYPE_INVISIBILITY ] != NULL) {
m_pClientList[sOwnerH]->m_cMagicEffectStatus[ DEF_MAGICTYPE_INVISIBILITY ] = NULL;
SetInvisibilityFlag(sOwnerH, cOwnerType, FALSE);
bRemoveFromDelayEventList(sOwnerH, cOwnerType, DEF_MAGICTYPE_INVISIBILITY);
}
break;
case DEF_OWNERTYPE_NPC:
if (m_pNpcList[sOwnerH] == NULL) return;
if (m_pNpcList[sOwnerH]->m_cMagicEffectStatus[ DEF_MAGICTYPE_INVISIBILITY ] != NULL) {
m_pNpcList[sOwnerH]->m_cMagicEffectStatus[ DEF_MAGICTYPE_INVISIBILITY ] = NULL;
SetInvisibilityFlag(sOwnerH, cOwnerType, FALSE);
bRemoveFromDelayEventList(sOwnerH, cOwnerType, DEF_MAGICTYPE_INVISIBILITY);
}
break;
}
}
}
break;
break;
}
break;
SOME EXPERT IN C++ can help me.. all this shit about c++ is new for me
THANKS :ph34r: