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

Runtime: Wrap fmt::print calls in #ifndef NDEBUG

This commit is contained in:
2020-04-11 02:25:41 -04:00
parent 11d948943d
commit e23c3d3705
3 changed files with 8 additions and 2 deletions

View File

@@ -78,10 +78,10 @@ void CStateMachineState::Update(CStateManager& mgr, CAi& ai, float delta) {
if (andPassed && state) {
x4_state->CallFunc(mgr, ai, EStateMsg::Deactivate, 0.f);
x4_state = state;
//#ifndef NDEBUG
#ifndef NDEBUG
fmt::print(fmt("{} {} {} - {} {}\n"), ai.GetUniqueId(), ai.GetEditorId(), ai.GetName(),
state->xc_name, int(state - x0_machine->GetStateVector().data()));
//#endif
#endif
x8_time = 0.f;
x18_24_codeTrigger = false;
xc_random = mgr.GetActiveRandom()->Float();