fix style a bit

This commit is contained in:
Ryozuki 2018-04-03 22:42:13 +02:00
parent 50c84a60f7
commit 747946b291
2 changed files with 13 additions and 12 deletions

View file

@ -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;

View file

@ -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)