mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fix style a bit
This commit is contained in:
parent
50c84a60f7
commit
747946b291
|
@ -177,6 +177,7 @@ void CLaser::DoBounce()
|
||||||
vec2 PossiblePos;
|
vec2 PossiblePos;
|
||||||
bool Found = false;
|
bool Found = false;
|
||||||
|
|
||||||
|
// Check if the laser hits a player.
|
||||||
bool pDontHitSelf = g_Config.m_SvOldLaser || (m_Bounces == 0 && !m_WasTele);
|
bool pDontHitSelf = g_Config.m_SvOldLaser || (m_Bounces == 0 && !m_WasTele);
|
||||||
vec2 At;
|
vec2 At;
|
||||||
CCharacter *pHit;
|
CCharacter *pHit;
|
||||||
|
|
|
@ -173,18 +173,18 @@ void CProjectile::Tick()
|
||||||
bool IsTeleValid = false;
|
bool IsTeleValid = false;
|
||||||
switch (m_Type)
|
switch (m_Type)
|
||||||
{
|
{
|
||||||
case WEAPON_GRENADE:
|
case WEAPON_GRENADE:
|
||||||
{
|
{
|
||||||
if (pOwnerChar->m_HasTeleGrenade)
|
if (pOwnerChar->m_HasTeleGrenade)
|
||||||
IsTeleValid = true;
|
IsTeleValid = true;
|
||||||
break;
|
}
|
||||||
}
|
break;
|
||||||
case WEAPON_GUN:
|
case WEAPON_GUN:
|
||||||
{
|
{
|
||||||
if (pOwnerChar->m_HasTeleGun)
|
if (pOwnerChar->m_HasTeleGun)
|
||||||
IsTeleValid = true;
|
IsTeleValid = true;
|
||||||
break;
|
}
|
||||||
}
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsTeleValid)
|
if (IsTeleValid)
|
||||||
|
|
Loading…
Reference in a new issue