Skip to content

Commit 87170ed

Browse files
authored
Merge pull request #3240 from official-antistasi-community/unstable
merge to master for 3.5.4
2 parents dbd03c0 + 6ee6b95 commit 87170ed

File tree

5 files changed

+35
-14
lines changed

5 files changed

+35
-14
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#define MAJOR 3
22
#define MINOR 5
3-
#define PATCHLVL 3
3+
#define PATCHLVL 4
44
#define BUILD 0

A3A/addons/core/functions/REINF/fn_spawnHCVeh.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private _spawnPos = false;
3535
private _spawnDir = false;
3636

3737
for "_i" from 1 to 10 do {
38-
//systemChat format ["Attempt %1", _i];
38+
if (_roads isEqualTo []) exitWith {};
3939
private _road = selectRandom _roads;
4040
(getRoadInfo _road) params ["", "_roadWidth", "", "", "", "", "_begPos", "_endPos"];
4141

A3A/addons/core/functions/init/fn_initServer.sqf

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,20 @@ else
127127

128128
// Do initial arsenal filling
129129
private _categoriesToPublish = createHashMap;
130-
private _equipHM = FactionGet(reb,"initialRebelEquipment") createHashMapFromArray []; // dupe proofing
130+
private _addedClasses = createHashMap; // dupe proofing
131131
{
132-
if (_x isEqualType "") then {
133-
private _arsenalTab = _x call jn_fnc_arsenal_itemType;
134-
jna_dataList#_arsenalTab pushBack [_x, -1]; // direct add to avoid O(N^2) issue
135-
private _categories = _x call A3A_fnc_equipmentClassToCategories;
136-
_categoriesToPublish insert [true, _categories, []];
137-
continue;
138-
};
139-
_x params ["_class", "_count"];
132+
_x params ["_class", ["_count", -1]];
133+
if (_class in _addedClasses) then { continue };
134+
_addedClasses set [_class, nil];
135+
140136
private _arsenalTab = _class call jn_fnc_arsenal_itemType;
141-
jna_dataList#_arsenalTab pushBack [_class, _count];
142-
} foreach keys _equipHM;
137+
jna_dataList#_arsenalTab pushBack [_class, _count]; // direct add to avoid O(N^2) issue
138+
139+
private _categories = _class call A3A_fnc_equipmentClassToCategories;
140+
{ (missionNamespace getVariable ("unlocked" + _x)) pushBack _class } forEach _categories;
141+
_categoriesToPublish insert [true, _categories, []];
142+
143+
} foreach FactionGet(reb,"initialRebelEquipment");
143144

144145
// Publish the unlocked categories (once each)
145146
{ publicVariable ("unlocked" + _x) } forEach keys _categoriesToPublish;

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<p align="center">
77
<a href="https://github.com/official-antistasi-community/A3-Antistasi/releases/latest">
8-
<img src="https://img.shields.io/badge/Latest_Version-3.5.3-blue.svg?style=flat-square" alt="Antistasi Version">
8+
<img src="https://img.shields.io/badge/Latest_Version-3.5.4-blue.svg?style=flat-square" alt="Antistasi Version">
99
</a>
1010
<a href="https://github.com/official-antistasi-community/A3-Antistasi/issues">
1111
<img src="https://img.shields.io/github/issues/official-antistasi-community/A3-Antistasi?style=flat-square" alt="Issues">

changelog.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ Changelog
33
==========
44

55

6+
Version 3.5.4
7+
===============
8+
9+
.. note::
10+
28th April 2024
11+
12+
.. admonition:: Bugfixes
13+
14+
* :issue:`3226` Fixed reordering and unlockedXXX arrays in initial unlocks
15+
* :issue:`3235` Fixed case where HC vehicles are remote-spawned with no roads near HQ
16+
17+
.. warning::
18+
19+
* Please note that this changelog may contain both spelling/grammatical errors and/or factual errors. Should any factual errors exist, we apologise but with the sheer number of changes made per version it can be easy to lose or mistake a change when writing up the changelog.
20+
21+
|
22+
23+
-----
24+
25+
626
Version 3.5.3
727
===============
828

0 commit comments

Comments
 (0)