mirror of https://github.com/AxioDL/metaforce.git
CCollidableOBBTree: Don't cast away const in constructor
Same behavior, minus a cast.
This commit is contained in:
parent
0e0ca4caa9
commit
6e7e761126
|
@ -12,7 +12,7 @@ namespace urde {
|
||||||
u32 CCollidableOBBTree::sTableIndex = 0;
|
u32 CCollidableOBBTree::sTableIndex = 0;
|
||||||
|
|
||||||
CCollidableOBBTree::CCollidableOBBTree(const COBBTree* tree, const urde::CMaterialList& material)
|
CCollidableOBBTree::CCollidableOBBTree(const COBBTree* tree, const urde::CMaterialList& material)
|
||||||
: CCollisionPrimitive(material), x10_tree((COBBTree*)tree) {}
|
: CCollisionPrimitive(material), x10_tree(tree) {}
|
||||||
|
|
||||||
bool CCollidableOBBTree::LineIntersectsLeaf(const COBBTree::CLeafData& leaf, CRayCastInfo& info) const {
|
bool CCollidableOBBTree::LineIntersectsLeaf(const COBBTree::CLeafData& leaf, CRayCastInfo& info) const {
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
|
|
||||||
class CCollidableOBBTree : public CCollisionPrimitive {
|
class CCollidableOBBTree : public CCollisionPrimitive {
|
||||||
friend class CCollidableOBBTreeGroup;
|
friend class CCollidableOBBTreeGroup;
|
||||||
COBBTree* x10_tree = nullptr;
|
const COBBTree* x10_tree = nullptr;
|
||||||
u32 x14_tries = 0;
|
u32 x14_tries = 0;
|
||||||
u32 x18_misses = 0;
|
u32 x18_misses = 0;
|
||||||
u32 x1c_hits = 0;
|
u32 x1c_hits = 0;
|
||||||
|
|
Loading…
Reference in New Issue