mirror of https://github.com/AxioDL/metaforce.git
CFlameThrower: Silence unused variable warning
This commit is contained in:
parent
0f11a00cc0
commit
25ea6d98bc
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue