game/server/server_weapon.c
/*	Returns the entities current active weapon.
*/
Returns the entities current active weapon.
Returns the entities current active weapon .
Weapon_t *Weapon_GetCurrentWeapon(ServerEntity_t *eEntity)
{
	Weapon_t	*wCurrentWeapon;
	for(wCurrentWeapon = Weapons; wCurrentWeapon->iItem; wCurrentWeapon++)
		if(eEntity->v.iActiveWeapon == wCurrentWeapon->iItem)
			return wCurrentWeapon;
	return Weapon_GetWeapon(0);
}
Weapon_t * Weapon_GetCurrentWeapon ( ServerEntity_t * eEntity ) { Weapon_t * wCurrentWeapon ; for ( wCurrentWeapon = Weapons ; wCurrentWeapon -> iItem ; wCurrentWeapon ++ ) if ( eEntity -> v . iActiveWeapon == wCurrentWeapon -> iItem ) return wCurrentWeapon ; return Weapon_GetWeapon ( 0 ) ; }
Returns the entities current active weapon.
Returns the entities current active weapon .