Skip to content

Commit

Permalink
Merge pull request #28 from tuntematonjr/minor-patch
Browse files Browse the repository at this point in the history
Minor patch
  • Loading branch information
tuntematonjr authored Jan 19, 2025
2 parents 0c3c891 + 099d9a6 commit 386d7ac
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addons/main/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MAJOR 1
#define MINOR 5
#define PATCH 0
#define PATCH 1
#define BUILD 1
2 changes: 1 addition & 1 deletion addons/startmarkers/functions/fnc_createOthereMarkers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private _deleteMarkerTime = GVAR(deleteMarkerTime);
{
_x params ["_classname", "_texts", "_pos", "_direction", "_color", "_updateTime"];

if ( !(_updateTime < 0) && {(_lastUpdateTime > (_deleteMarkerTime + _updateTime))}) exitWith {
if ((_updateTime >= 0) && {(_lastUpdateTime > (_deleteMarkerTime + _updateTime))}) exitWith {
private _logText = format ["other marker %1 has not been updated long time, so it is skipped", _texts select 0];
LOG(_logText);
};
Expand Down
4 changes: 2 additions & 2 deletions addons/startmarkers/functions/fnc_createSquadMarkers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ private _deleteMarkerTime = GVAR(deleteMarkerTime);
{
_x params ["_icon", "_pos", "_color", "_group", "_text", "_updateTime", "_hide"];

if ( !(_updateTime < 0) && {(_lastUpdateTime > ( _deleteMarkerTime + _updateTime))}) exitWith {
if ((_updateTime >= 0) && {(_lastUpdateTime > ( _deleteMarkerTime + _updateTime))}) exitWith {
private _logText = format ["Marker %1 has not been updated long time, so it is skipped. Should be deleted in next update.",_text];
LOG(_logText);
};

private _alpha = 1;
if ( !(_updateTime < 0) && {(_lastUpdateTime > ( _lostContactTime + _updateTime))}) then {
if ((_updateTime >= 0) && {(_lastUpdateTime > ( _lostContactTime + _updateTime))}) then {
_alpha = 0.5;
};

Expand Down
2 changes: 1 addition & 1 deletion addons/startmarkers/functions/fnc_createVehicleIcon.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (!isNull _dialogDisplay) then {
};


if ( !(_updateTime < 0) && {(_lastUpdateTime > ( _lostContactTime + _updateTime))}) then {
if ((_updateTime >= 0) && {(_lastUpdateTime > ( _lostContactTime + _updateTime))}) then {
_color set [-1, 0.5];
};

Expand Down
2 changes: 1 addition & 1 deletion addons/startmarkers/functions/fnc_createVehicleMarkers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private _deleteMarkerTime = GVAR(deleteMarkerTime);
{
_x params ["_classname", "_texts", "_pos", "_direction", "_color", "_updateTime"];

if ( !(_updateTime < 0) && {(_lastUpdateTime > (_deleteMarkerTime + _updateTime))}) exitWith {
if ((_updateTime >= 0) && {(_lastUpdateTime > (_deleteMarkerTime + _updateTime))}) exitWith {
private _logText = format ["Vehicle marker %1 has not been updated long time, so it is skipped", _texts select 0];
LOG(_logText);
};
Expand Down
2 changes: 1 addition & 1 deletion addons/startmarkers/functions/fnc_filterData.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private _deleteMarkerTime = GVAR(deleteMarkerTime);
private _value = _y;
private _valueUpdateTime = _value select 5;

if (( !(_valueUpdateTime < 0) && {(_lastUpdateTime > ( _deleteMarkerTime + _valueUpdateTime))})) then {
if (((_valueUpdateTime >= 0) && {(_lastUpdateTime > ( _deleteMarkerTime + _valueUpdateTime))})) then {
_hash deleteAt _key;
};
} forEach _hash;
Expand Down
3 changes: 2 additions & 1 deletion addons/utilities/functions/fnc_loadScreen.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ if (!isMultiplayer) exitWith { LOG("Skip desync load screen in SP"); }; // skip

[{!isNull player && !isNull findDisplay 12 && !isNil QGVAR(runLoadScreen)}, {
if (!GVAR(runLoadScreen)) exitWith { INFO("Desync load screen disabled"); };
if (count allPlayers < 10) exitWith { INFO("Desync load disabled under 10 players"); };
private _allPlayers = count(call BIS_fnc_listPlayers);
if (_allPlayers < 10) exitWith { INFO("Desync load disabled under 10 players"); };
if !(playerSide in [west, east, resistance, civilian]) exitWith { INFO("Not in right side, so skip desync load screen"); };
if (10*60 < cba_missiontime) exitWith { INFO("Mission has started already"); };
INFO("Start desync load screen");
Expand Down

0 comments on commit 386d7ac

Please sign in to comment.