CFlameThrower: Silence unused variable warning

This commit is contained in:
Lioncash 2020-05-09 22:28:35 -04:00
parent 0f11a00cc0
commit 25ea6d98bc
1 changed files with 4 additions and 4 deletions

View File

@ -227,12 +227,12 @@ void CFlameThrower::Think(float dt, CStateManager& mgr) {
if (r28 && x34c_flameWarp.IsProcessed()) {
x318_flameBounds = x34c_flameWarp.CalculateBounds();
TUniqueId id = kInvalidUniqueId;
CRayCastResult res = DoCollisionCheck(id, x318_flameBounds, mgr);
if (TCastToPtr<CActor> act = mgr.ObjectById(id)) {
const CRayCastResult res = DoCollisionCheck(id, x318_flameBounds, mgr);
if (TCastToConstPtr<CActor>(mgr.ObjectById(id))) {
ApplyDamageToActor(mgr, id, dt);
} else if (res.IsValid()) {
CMaterialFilter useFilter = xf8_filter;
CDamageInfo useDInfo = CDamageInfo(x12c_curDamageInfo, dt);
const CMaterialFilter useFilter = xf8_filter;
const CDamageInfo useDInfo = CDamageInfo(x12c_curDamageInfo, dt);
mgr.ApplyDamageToWorld(xec_ownerId, *this, res.GetPoint(), useDInfo, useFilter);
}
}