Help me, posible beholder neck FIX

All Helbreath Server Source Discussion here.
Post Reply
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

in function CalcTotalItemEffect
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;
When i add them to my files... hg crash when i equip my char whit the neck

SOME EXPERT IN C++ can help me.. all this shit about c++ is new for me

THANKS :ph34r:
"Prefiero morir de pie que vivir arrodillado"
Post Reply