2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +00:00

CScriptMazeNode: Fix reversed enter/target & add debug rendering

This commit is contained in:
2020-09-21 20:42:54 -04:00
parent df2d191be8
commit a35bfc49b5
3 changed files with 72 additions and 18 deletions

View File

@@ -537,6 +537,7 @@ void CStateManager::BuildDynamicLightListForWorld() {
void CStateManager::DrawDebugStuff() const {
#ifndef NDEBUG
CGraphics::SetModelMatrix(zeus::CTransform());
for (CEntity* ent : GetActorObjectList()) {
if (const TCastToPtr<CPatterned> ai = ent) {
if (CPathFindSearch* path = ai->GetSearchPath()) {
@@ -544,6 +545,9 @@ void CStateManager::DrawDebugStuff() const {
}
}
}
if (xf70_currentMaze) {
xf70_currentMaze->DebugRender();
}
#endif
}