Skip to content

Commit

Permalink
Remove EMaterialType hack in CFire
Browse files Browse the repository at this point in the history
  • Loading branch information
Antidote committed Dec 24, 2024
1 parent 8290186 commit a1098ff
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/MetroidPrime/ScriptObjects/CFire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@
#include "rstl/optional_object.hpp"
#include <rstl/math.hpp>

static EMaterialTypes kSolidMat = kMT_Solid;
static EMaterialTypes kProjectileMat = kMT_Projectile;

CFire::CFire(const TToken< CGenDescription >& effect, TUniqueId uid, TAreaId area, bool active,
TUniqueId owner, const CTransform4f& xf, const CDamageInfo& dInfo, const CAABox& aabox,
const CVector3f& vec, bool b1, CAssetId visorEffect, bool b2, bool b3, bool b4,
float f1, float f2, float f3, float f4)
: CActor(uid, active, "Fire", CEntityInfo(area, NullConnectionList), xf,
CModelData::CModelDataNull(), CMaterialList(kProjectileMat), CActorParameters::None(),
CModelData::CModelDataNull(), CMaterialList(kMT_Projectile), CActorParameters::None(),
kInvalidUniqueId)
, xe8_(rs_new CElementGen(effect))
, xec_owner(owner)
Expand Down Expand Up @@ -55,7 +52,7 @@ void CFire::Touch(CActor& act, CStateManager& mgr) {
}

mgr.ApplyDamage(GetUniqueId(), act.GetUniqueId(), GetUniqueId(), x10c_damageInfo2,
CMaterialFilter::MakeIncludeExclude(CMaterialList(kSolidMat), CMaterialList()),
CMaterialFilter::MakeIncludeExclude(CMaterialList(SolidMaterial), CMaterialList()),
CVector3f::Zero());
}

Expand Down

0 comments on commit a1098ff

Please sign in to comment.