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

Editor: Only create Win32 console & redirect logging if not attached

This commit is contained in:
2020-04-18 03:02:44 -04:00
parent 2b62bb9577
commit 7f15390d4f
2 changed files with 5 additions and 7 deletions

View File

@@ -417,12 +417,7 @@ void CStateManager::SetupParticleHook(const CActor& actor) const {
void CStateManager::MurderScriptInstanceNames() { xb40_uniqueInstanceNames.clear(); }
std::string CStateManager::HashInstanceName(CInputStream& in) {
if (hecl::com_developer && hecl::com_developer->toBoolean()) {
return in.readString();
} else {
while (in.readByte() != 0) {};
return "";
}
return in.readString();
}
void CStateManager::SetActorAreaId(CActor& actor, TAreaId aid) {
@@ -517,6 +512,7 @@ void CStateManager::BuildDynamicLightListForWorld() {
}
void CStateManager::DrawDebugStuff() const {
#ifndef NDEBUG
for (CEntity* ent : GetActorObjectList()) {
if (TCastToPtr<CPatterned> ai = ent) {
if (CPathFindSearch* path = ai->GetSearchPath()) {
@@ -524,6 +520,7 @@ void CStateManager::DrawDebugStuff() const {
}
}
}
#endif
}
void CStateManager::RenderCamerasAndAreaLights() {