mirror of https://github.com/AxioDL/metaforce.git
World/CScript*: Pass by reference over by value
Based off the use of the const, it's likely that these were intended to be references, rather than be copied by value
This commit is contained in:
parent
fea7984f71
commit
2c6aed7033
|
@ -18,7 +18,7 @@ CMaterialList MakeDockMaterialList() {
|
|||
return list;
|
||||
}
|
||||
|
||||
CScriptDock::CScriptDock(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CVector3f position,
|
||||
CScriptDock::CScriptDock(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CVector3f& position,
|
||||
const zeus::CVector3f& extents, s32 dock, TAreaId area, bool active, s32 dockReferenceCount,
|
||||
bool loadConnected)
|
||||
: CPhysicsActor(uid, active, name, info, zeus::CTransform(zeus::CMatrix3f(), position),
|
||||
|
|
|
@ -22,7 +22,7 @@ class CScriptDock : public CPhysicsActor {
|
|||
};
|
||||
|
||||
public:
|
||||
CScriptDock(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CVector3f position,
|
||||
CScriptDock(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CVector3f& position,
|
||||
const zeus::CVector3f& extent, s32 dock, TAreaId area, bool active, s32 dockReferenceCount,
|
||||
bool loadConnected);
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
namespace urde {
|
||||
|
||||
CScriptPointOfInterest::CScriptPointOfInterest(TUniqueId uid, std::string_view name, const CEntityInfo info,
|
||||
CScriptPointOfInterest::CScriptPointOfInterest(TUniqueId uid, std::string_view name, const CEntityInfo& info,
|
||||
const zeus::CTransform& xf, bool active,
|
||||
const CScannableParameters& parms, float f1)
|
||||
: CActor(uid, active, name, info, xf, CModelData::CModelDataNull(), CMaterialList(u64(EMaterialTypes::Orbit)),
|
||||
|
|
|
@ -9,7 +9,7 @@ private:
|
|||
float xe8_pointSize;
|
||||
|
||||
public:
|
||||
CScriptPointOfInterest(TUniqueId, std::string_view, const CEntityInfo, const zeus::CTransform&, bool,
|
||||
CScriptPointOfInterest(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, bool,
|
||||
const CScannableParameters&, float);
|
||||
|
||||
void Accept(IVisitor& visitor) override;
|
||||
|
|
Loading…
Reference in New Issue