11-09-2011, 07:20 AM
Hey,
Client still crashes doesnt seem to be anything in my code so far i can see.
Client still crashes doesnt seem to be anything in my code so far i can see.
Code:
void cChicken::KilledBy( cEntity* a_Killer )
{
//1 raw chicken
cPickup* pRawChicken = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_RAW_CHICKEN, 1 ) );
pRawChicken->Initialize( GetWorld() );
//0 to 2 feather.
int rFeather = rand() % 3;
if (rFeather != 0) {
cPickup* pFeather = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_FEATHER, rFeather ) );
pFeather->Initialize( GetWorld() );
}
cMonster::KilledBy( a_Killer );
}