Skip to content

Commit

Permalink
Merge pull request #3240 from official-antistasi-community/unstable
Browse files Browse the repository at this point in the history
merge to master for 3.5.4
  • Loading branch information
Bob-Murphy authored Apr 28, 2024
2 parents dbd03c0 + 6ee6b95 commit 87170ed
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 14 deletions.
2 changes: 1 addition & 1 deletion A3A/addons/core/Includes/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MAJOR 3
#define MINOR 5
#define PATCHLVL 3
#define PATCHLVL 4
#define BUILD 0
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/REINF/fn_spawnHCVeh.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private _spawnPos = false;
private _spawnDir = false;

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

Expand Down
23 changes: 12 additions & 11 deletions A3A/addons/core/functions/init/fn_initServer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,20 @@ else

// Do initial arsenal filling
private _categoriesToPublish = createHashMap;
private _equipHM = FactionGet(reb,"initialRebelEquipment") createHashMapFromArray []; // dupe proofing
private _addedClasses = createHashMap; // dupe proofing
{
if (_x isEqualType "") then {
private _arsenalTab = _x call jn_fnc_arsenal_itemType;
jna_dataList#_arsenalTab pushBack [_x, -1]; // direct add to avoid O(N^2) issue
private _categories = _x call A3A_fnc_equipmentClassToCategories;
_categoriesToPublish insert [true, _categories, []];
continue;
};
_x params ["_class", "_count"];
_x params ["_class", ["_count", -1]];
if (_class in _addedClasses) then { continue };
_addedClasses set [_class, nil];

private _arsenalTab = _class call jn_fnc_arsenal_itemType;
jna_dataList#_arsenalTab pushBack [_class, _count];
} foreach keys _equipHM;
jna_dataList#_arsenalTab pushBack [_class, _count]; // direct add to avoid O(N^2) issue

private _categories = _class call A3A_fnc_equipmentClassToCategories;
{ (missionNamespace getVariable ("unlocked" + _x)) pushBack _class } forEach _categories;
_categoriesToPublish insert [true, _categories, []];

} foreach FactionGet(reb,"initialRebelEquipment");

// Publish the unlocked categories (once each)
{ publicVariable ("unlocked" + _x) } forEach keys _categoriesToPublish;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<p align="center">
<a href="https://github.com/official-antistasi-community/A3-Antistasi/releases/latest">
<img src="https://img.shields.io/badge/Latest_Version-3.5.3-blue.svg?style=flat-square" alt="Antistasi Version">
<img src="https://img.shields.io/badge/Latest_Version-3.5.4-blue.svg?style=flat-square" alt="Antistasi Version">
</a>
<a href="https://github.com/official-antistasi-community/A3-Antistasi/issues">
<img src="https://img.shields.io/github/issues/official-antistasi-community/A3-Antistasi?style=flat-square" alt="Issues">
Expand Down
20 changes: 20 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@ Changelog
==========


Version 3.5.4
===============

.. note::
28th April 2024

.. admonition:: Bugfixes

* :issue:`3226` Fixed reordering and unlockedXXX arrays in initial unlocks
* :issue:`3235` Fixed case where HC vehicles are remote-spawned with no roads near HQ

.. warning::

* 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.

|
-----


Version 3.5.3
===============

Expand Down

0 comments on commit 87170ed

Please sign in to comment.