From 747946b29151a32c331afceb21fb08bb6ad2efd5 Mon Sep 17 00:00:00 2001 From: Ryozuki Date: Tue, 3 Apr 2018 22:42:13 +0200 Subject: [PATCH] fix style a bit --- src/game/server/entities/laser.cpp | 1 + src/game/server/entities/projectile.cpp | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/game/server/entities/laser.cpp b/src/game/server/entities/laser.cpp index cd2d60f9c..bfb3a9af8 100644 --- a/src/game/server/entities/laser.cpp +++ b/src/game/server/entities/laser.cpp @@ -177,6 +177,7 @@ void CLaser::DoBounce() vec2 PossiblePos; bool Found = false; + // Check if the laser hits a player. bool pDontHitSelf = g_Config.m_SvOldLaser || (m_Bounces == 0 && !m_WasTele); vec2 At; CCharacter *pHit; diff --git a/src/game/server/entities/projectile.cpp b/src/game/server/entities/projectile.cpp index db9e52d18..efb65d6c1 100644 --- a/src/game/server/entities/projectile.cpp +++ b/src/game/server/entities/projectile.cpp @@ -173,18 +173,18 @@ void CProjectile::Tick() bool IsTeleValid = false; switch (m_Type) { - case WEAPON_GRENADE: - { - if (pOwnerChar->m_HasTeleGrenade) - IsTeleValid = true; - break; - } - case WEAPON_GUN: - { - if (pOwnerChar->m_HasTeleGun) - IsTeleValid = true; - break; - } + case WEAPON_GRENADE: + { + if (pOwnerChar->m_HasTeleGrenade) + IsTeleValid = true; + } + break; + case WEAPON_GUN: + { + if (pOwnerChar->m_HasTeleGun) + IsTeleValid = true; + } + break; } if (IsTeleValid)