p_inter.c
/* 
=================== 
= 
= P_GiveBody
=
= Returns false if the body isn't needed at all
=================== 
*/
P_GiveBody
Returns false if the body isn't needed at all
P_GiveBody Returns false if the body isn ' t needed at all
boolean P_GiveBody (player_t *player, int num)
{
	if (player->health >= MAXHEALTH)
		return false;
	player->health += num;
	if (player->health > MAXHEALTH)
		player->health = MAXHEALTH;
	player->mo->health = player->health;
	return true;
}
boolean P_GiveBody ( player_t * player , int num ) { if ( player -> health >= MAXHEALTH ) return false ; player -> health += num ; if ( player -> health > MAXHEALTH ) player -> health = MAXHEALTH ; player -> mo -> health = player -> health ; return true ; }
P_GiveBody
Returns false if the body isn't needed at all
P_GiveBody Returns false if the body isn ' t needed at all