From 83c311c8533a761954fbbe6bae2598918365681f Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 16 Jun 2021 17:06:45 -0700 Subject: [PATCH] Escape the JTAC zone name in the plugin data. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1218 (cherry picked from commit 021445216e82993c0fb6ce1ea0400f909e24d956) --- changelog.md | 8 ++++++++ game/operation/operation.py | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index d85dce66..777c573b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,11 @@ +# 3.1.0 + +## Features/Improvements + +## Fixes + +* Fixed problem with mission load when control point name contained an apostrophe. + # 3.0.0 Saves from 2.5 are not compatible with 3.0. diff --git a/game/operation/operation.py b/game/operation/operation.py index 3df80df7..8b1b8aa7 100644 --- a/game/operation/operation.py +++ b/game/operation/operation.py @@ -593,8 +593,7 @@ class Operation: zone = data["zone"] laserCode = data["laserCode"] dcsUnit = data["dcsUnit"] - lua += f" {{dcsGroupName='{dcsGroupName}', callsign='{callsign}', zone='{zone}', laserCode='{laserCode}', dcsUnit='{dcsUnit}' }}, \n" - # lua += f" {{name='{dcsGroupName}', description='JTAC {callsign} ', information='Laser:{laserCode}', jtac={laserCode} }}, \n" + lua += f" {{dcsGroupName='{dcsGroupName}', callsign='{callsign}', zone={repr(zone)}, laserCode='{laserCode}', dcsUnit='{dcsUnit}' }}, \n" lua += "}" # Process the Target Points