CBeamProjectile: Silence unused variable warning

This commit is contained in:
Lioncash 2020-05-09 22:27:54 -04:00
parent 5f80504e6e
commit 0f11a00cc0
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void CBeamProjectile::UpdateFx(const zeus::CTransform& xf, float dt, CStateManag
mgr.BuildNearList(nearList, x36c_, CMaterialFilter::MakeExclude({EMaterialTypes::ProjectilePassthrough}), nullptr); mgr.BuildNearList(nearList, x36c_, CMaterialFilter::MakeExclude({EMaterialTypes::ProjectilePassthrough}), nullptr);
TUniqueId collideId = kInvalidUniqueId; TUniqueId collideId = kInvalidUniqueId;
CRayCastResult res = RayCollisionCheckWithWorld(collideId, x298_previousPos, beamEnd, x300_intBeamLength, nearList, mgr); CRayCastResult res = RayCollisionCheckWithWorld(collideId, x298_previousPos, beamEnd, x300_intBeamLength, nearList, mgr);
if (TCastToPtr<CActor> act = mgr.ObjectById(collideId)) { if (TCastToConstPtr<CActor>(mgr.ObjectById(collideId))) {
SetCollisionResultData(EDamageType::Actor, res, collideId); SetCollisionResultData(EDamageType::Actor, res, collideId);
if (x464_25_enableTouchDamage) if (x464_25_enableTouchDamage)
ApplyDamageToActors(mgr, CDamageInfo(x12c_curDamageInfo, dt)); ApplyDamageToActors(mgr, CDamageInfo(x12c_curDamageInfo, dt));