From 2f08f74318e9cd15aad6631ff3b8c98179ac5e6b Mon Sep 17 00:00:00 2001 From: GreYFoXGTi Date: Thu, 30 Sep 2010 23:49:23 +0300 Subject: [PATCH] Fixed Projectiles Snapping Signed-off-by: GreYFoXGTi --- src/game/server/entities/projectile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/server/entities/projectile.cpp b/src/game/server/entities/projectile.cpp index 4eaf80987..97a3b5406 100644 --- a/src/game/server/entities/projectile.cpp +++ b/src/game/server/entities/projectile.cpp @@ -105,7 +105,6 @@ void CProjectile::Tick() } if( ((TargetChr && (g_Config.m_SvHit || m_Owner == -1 || TargetChr == OwnerChar)) || Collide) && !isWeaponCollide)//TODO:TEAM { - if(m_Explosive/*??*/ && (!TargetChr || (TargetChr && !m_Freeze))) { GameServer()->CreateExplosion(ColPos, m_Owner, m_Weapon, m_Owner == -1, @@ -159,7 +158,7 @@ void CProjectile::Snap(int SnappingClient) return; CCharacter * Char = GameServer()->GetPlayerChar(SnappingClient); if(Char && m_Owner != -1 && !Char->GetPlayer()->m_ShowOthers && - Char->CanCollide(m_Owner)) return; + !Char->CanCollide(m_Owner)) return; CNetObj_Projectile *pProj = static_cast(Server()->SnapNewItem(NETOBJTYPE_PROJECTILE, m_Id, sizeof(CNetObj_Projectile))); FillInfo(pProj); }