From 2aeda6dae28fb65df5bd918b65e056fbc31bbd98 Mon Sep 17 00:00:00 2001 From: James Kingsley Date: Wed, 12 Apr 2017 18:15:53 +0100 Subject: [PATCH] Provide clean way of doing single line objectives --- ARCMF.VR/f/arc/helpers/fn_buildBriefingFromConfig.sqf | 9 +++++++-- ARCMF.VR/version.txt | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ARCMF.VR/f/arc/helpers/fn_buildBriefingFromConfig.sqf b/ARCMF.VR/f/arc/helpers/fn_buildBriefingFromConfig.sqf index 381e8b1..4f22575 100644 --- a/ARCMF.VR/f/arc/helpers/fn_buildBriefingFromConfig.sqf +++ b/ARCMF.VR/f/arc/helpers/fn_buildBriefingFromConfig.sqf @@ -25,9 +25,14 @@ private _output = ""; private _lines = getArray (missionConfigFile >> "CfgARCMF" >> "briefing" >> _faction >> _category); { - if (_x != "") then { - _output = _output + format ["%1%2", _x, (["", "

"] select (_forEachIndex != (count _lines - 1)))]; + private _firstChar = _x select [0, 1]; + private _lineBreak = ["", "

"] select (_forEachIndex != (count _lines - 1)); + + if (_firstChar == '-') then { + _lineBreak = '
'; }; + + _output = _output + format ["%1%2", _x, _lineBreak]; } forEach _lines; _output diff --git a/ARCMF.VR/version.txt b/ARCMF.VR/version.txt index 26ca594..4cda8f1 100644 --- a/ARCMF.VR/version.txt +++ b/ARCMF.VR/version.txt @@ -1 +1 @@ -1.5.1 +1.5.2