We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8422ec5 commit 9434d17Copy full SHA for 9434d17
addons/pid/fnc_update.sqf
@@ -58,7 +58,7 @@ switch (true) do {
58
private _x1 = _history select 1;
59
60
private _stride = (_x1 select 0) - (_x0 select 0);
61
- if (_stride == 0) then { break };
+ if (_stride == 0) exitWith {};
62
63
_derivative = ((_x1 select 1) - (_x0 select 1)) / _stride;
64
};
@@ -69,7 +69,7 @@ switch (true) do {
69
private _stride0 = (_xn0 select 0) - (_xn1 select 0);
70
private _stride1 = (_xn1 select 0) - (_xn2 select 0);
71
private _stride = _stride0 + _stride1;
72
73
74
private _sum = -3 * (_xn2 select 1) + 4 * (_xn1 select 1) - (_xn0 select 1);
75
_derivative = _sum / _stride;
0 commit comments