From 6364362bd3e72cf6c377f92ff8a195413f468858 Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Wed, 6 Nov 2024 22:50:06 -0500 Subject: [PATCH] formatting . --- MissionEditor/TriggerEventsDlg.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MissionEditor/TriggerEventsDlg.cpp b/MissionEditor/TriggerEventsDlg.cpp index fae0efe..554039e 100644 --- a/MissionEditor/TriggerEventsDlg.cpp +++ b/MissionEditor/TriggerEventsDlg.cpp @@ -99,7 +99,9 @@ void CTriggerEventsDlg::TranslateUI() int GetEventParamStart(const CString& EventData, int param) { int count = atoi(GetParam(EventData, 0)); - if (param >= count) return -1; + if (param >= count) { + return -1; + } int pos = 1; int i; @@ -108,8 +110,8 @@ int GetEventParamStart(const CString& EventData, int param) int needs = atoi(GetParam(EventData, pos)); pos += 2; // jump to next usual eventtype - if (needs == 2) // if needs of last eventtype is 2, we need to add 1 - { + // if needs of last eventtype is 2, we need to add 1 + if (needs == 2) { pos += 1; } }