p_inter.c
/* 
=================== 
= 
= P_GiveArmor
=
= Returns false if the armor is worse than the current armor
=================== 
*/
P_GiveArmor
Returns false if the armor is worse than the current armor
P_GiveArmor Returns false if the armor is worse than the current armor
boolean P_GiveArmor (player_t *player, int armortype)
{
	int		hits;
	hits = armortype*100;
	if (player->armorpoints >= hits)
		return false;		
	player->armortype = armortype;
	player->armorpoints = hits;
	return true;
}
boolean P_GiveArmor ( player_t * player , int armortype ) { int hits ; hits = armortype * 100 ; if ( player -> armorpoints >= hits ) return false ; player -> armortype = armortype ; player -> armorpoints = hits ; return true ; }
P_GiveArmor
Returns false if the armor is worse than the current armor
P_GiveArmor Returns false if the armor is worse than the current armor
/* don't pick up */