mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
fix style a bit
This commit is contained in:
parent
50c84a60f7
commit
747946b291
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue