mirror of https://github.com/AxioDL/metaforce.git
Fix boost ball and other collision issues
This commit is contained in:
parent
f4b01e9c3f
commit
bc9d225c89
|
@ -93,7 +93,7 @@ public:
|
||||||
ETreeType GetChildType(int idx) const
|
ETreeType GetChildType(int idx) const
|
||||||
{
|
{
|
||||||
u16 flags = *reinterpret_cast<const u16*>(x18_ptr);
|
u16 flags = *reinterpret_cast<const u16*>(x18_ptr);
|
||||||
return ETreeType((flags << (2 * idx)) & 0x3);
|
return ETreeType((flags >> (2 * idx)) & 0x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
ETreeType GetTreeType() const { return x20_nodeType; }
|
ETreeType GetTreeType() const { return x20_nodeType; }
|
||||||
|
|
|
@ -1735,7 +1735,8 @@ void CMorphBall::Render(const CStateManager& mgr, const CActorLights* lights) co
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
x58_ballModel->Render(mgr, ballToWorld, nullptr, flags);
|
// Lights used to be nullptr here, but we keep it due to PC's increased dynamic lighting range
|
||||||
|
x58_ballModel->Render(mgr, ballToWorld, lights, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x1c1c_rainSplashGen && x1c1c_rainSplashGen->IsRaining())
|
if (x1c1c_rainSplashGen && x1c1c_rainSplashGen->IsRaining())
|
||||||
|
|
Loading…
Reference in New Issue