CheckBasicStyle: Check number of empty lines between functions (#4267)
Add check for number of empty lines between functions and fix the corresponding failures
This commit is contained in:
@@ -984,6 +984,7 @@ void cPlayer::SetFlying(bool a_IsFlying)
|
||||
|
||||
|
||||
|
||||
|
||||
void cPlayer::ApplyArmorDamage(int a_DamageBlocked)
|
||||
{
|
||||
short ArmorDamage = static_cast<short>(std::max(a_DamageBlocked / 4, 1));
|
||||
@@ -1247,6 +1248,7 @@ double cPlayer::GetEyeHeight(void) const
|
||||
|
||||
|
||||
|
||||
|
||||
Vector3d cPlayer::GetEyePosition(void) const
|
||||
{
|
||||
return Vector3d( GetPosX(), m_Stance, GetPosZ());
|
||||
@@ -1282,6 +1284,7 @@ bool cPlayer::IsGameModeAdventure(void) const
|
||||
|
||||
|
||||
|
||||
|
||||
bool cPlayer::IsGameModeSpectator(void) const
|
||||
{
|
||||
return (GetEffectiveGameMode() == gmSpectator);
|
||||
@@ -2979,6 +2982,7 @@ void cPlayer::FreezeInternal(const Vector3d & a_Location, bool a_ManuallyFrozen)
|
||||
|
||||
|
||||
|
||||
|
||||
float cPlayer::GetLiquidHeightPercent(NIBBLETYPE a_Meta)
|
||||
{
|
||||
if (a_Meta >= 8)
|
||||
@@ -3073,7 +3077,6 @@ float cPlayer::GetPlayerRelativeBlockHardness(BLOCKTYPE a_Block)
|
||||
|
||||
|
||||
|
||||
|
||||
float cPlayer::GetExplosionExposureRate(Vector3d a_ExplosionPosition, float a_ExlosionPower)
|
||||
{
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user