void cChar::setHairStyle( unsigned short d) { if( !isHair( d ) ) return; hairstyle_ = d; changed( SAVE ); cItem* pHair = GetItemOnLayer( 11 ); if( pHair ) { pHair->setId( d ); } else { pHair = new cItem; pHair->Init();  pHair->setDye(1); pHair->setNewbie( true ); pHair->setId( d ); pHair->setColor( haircolor_ ); addItem( cChar::Hair, pHair ); } pHair->update(); resend(); }
void					setHairStyle ( unsigned short d) { hairstyle_ = d; changed_ = true;}
void cChar::setHairStyle( unsigned short d)	{ 	if( !isHair( d ) )		return;	hairstyle_ = d; 	changed( SAVE );	cItem* pHair = GetItemOnLayer( 11 );	if( pHair )	{		pHair->setId( d );	}	else	{		pHair = new cItem;		pHair->Init();		pHair->setDye(1);		pHair->setNewbie( true );		pHair->setId( d );		pHair->setColor( haircolor_ );		addItem( cChar::Hair, pHair );	}	pHair->update();	resend();}