2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:47:42 +00:00

More bug fixes

This commit is contained in:
Jack Andersen
2018-05-18 19:16:08 -10:00
parent 979a54a8a8
commit 5f03362149
9 changed files with 26 additions and 21 deletions

View File

@@ -758,7 +758,7 @@ void CStateManager::DrawWorld() const
{
if (TCastToPtr<CActor> actor = ent)
{
if (!actor->xe7_29_drawEnabled)
if (!actor->IsDrawEnabled())
continue;
TUniqueId actorId = actor->GetUniqueId();
if (!thermal && area.LookupPVSUniqueID(actorId) == actorId)
@@ -978,7 +978,7 @@ void CStateManager::PreRender()
{
if (TCastToPtr<CActor> act = ent)
{
if (act->IsActorActive())
if (act->IsDrawEnabled())
{
act->CalculateRenderBounds();
act->PreRender(*this, frustum);