Optimized approach to classifying blacklist type

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
lambdatiger
2024-01-15 18:40:03 -06:00
committed by GitHub
parent 902af64d7e
commit a8e268cdff

View File

@ -18,12 +18,9 @@
params ["_projectile"];
TRACE_1("addBlackList",_round);
switch (typeName _projectile) do {
case "OBJECT": {
GVAR(shouldFragCache) set [typeOf _projectile, false];
};
case "STRING": {
GVAR(shouldFragCache) set [_projectile, false];
};
default { };
if (_projectile isEqualType objNull) then {
_projectile = typeOf _projectile;
};
GVAR(shouldFragCache) set [_projectile, false];