Skip to content

Commit de1819a

Browse files
committed
make Inviso do not skip distance check in case of premature detonation
1 parent c50e77f commit de1819a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Ext/WarheadType/Detonate.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ void WarheadTypeExt::ExtData::Detonate(TechnoClass* pOwner, HouseClass* pHouse,
166166
{
167167
// Jun 2, 2024 - Starkku: We should only detonate on the target if the bullet, at the moment of detonation is within acceptable distance of the target.
168168
// Ares uses 64 leptons / quarter of a cell as a tolerance, so for sake of consistency we're gonna do the same here.
169-
// Skip the distance checking process for Inviso projectiles.
170-
if (pBullet->Type->Inviso || pBullet->DistanceFrom(pTarget) <= 64.0) // Unsorted::LeptonsPerCell / 4.0
169+
if (pBullet->DistanceFrom(pTarget) <= 64.0) // Unsorted::LeptonsPerCell / 4.0
171170
this->DetonateOnOneUnit(pHouse, pTarget, coords, damage, pOwner, bulletWasIntercepted);
172171
}
173172
}

0 commit comments

Comments
 (0)