@jtff/miztemplate-lib 3.4.8 → 3.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,10 +78,9 @@ function startCapWarZone(objCapWarZone)
78
78
  UTILS.FeetToMeters(20000)
79
79
  )
80
80
  end
81
- if ( capsqnconfig.overhead > 0) then
81
+ if ( (capsqnconfig.overhead or 0 ) > 0) then
82
82
  objCapWarZone.objDispatcher:SetSquadronOverhead(CAPSquadronName, capsqnconfig.overhead)
83
83
  end
84
- objCapWarZone.objDispatcher:SetSquadronOverhead(CAPSquadronName, capsqnconfig.overhead or 1)
85
84
  function objCapWarZone.objDispatcher:OnEventBirth(eventData)
86
85
  local unit = UNIT:Find(eventData.initiator)
87
86
  if (objCapWarZone.customconfig.fireRange) then
@@ -167,7 +166,7 @@ function startCapWarZone(objCapWarZone)
167
166
  )
168
167
  end
169
168
  jtff_log.info(string.format("Assigned Squadron %s to GCI mission...", interceptSquadronName),"CAP_WAR_ZONE")
170
- if ( interceptsqnconfig.overhead > 0) then
169
+ if ( ( interceptsqnconfig.overhead or 0 ) > 0) then
171
170
  objCapWarZone.objDispatcher:SetSquadronOverhead(interceptSquadronName, interceptsqnconfig.overhead)
172
171
  end
173
172
  objCapWarZone.objDispatcher:SetSquadronGci(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.4.8",
3
+ "version": "3.4.10",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [