Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tagging - Remove useless isClass check in configClasses #8017

Merged
merged 1 commit into from
Nov 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addons/tagging/XEH_preStart.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

private _cacheStaticModels = [];

private _vehicleClasses = "isClass _x && (configName _x) isKindOf 'Static'" configClasses (configFile >> "CfgVehicles");
private _vehicleClasses = "(configName _x) isKindOf 'Static'" configClasses (configFile >> "CfgVehicles");

// Consider static everything vehicle that inherit from Static
// This include houses (which we don't need), but also walls, that we do
Expand All @@ -16,7 +16,7 @@ private _vehicleClasses = "isClass _x && (configName _x) isKindOf 'Static'" conf
};
} forEach _vehicleClasses;

private _nonAIVehicleClasses = "isClass _x" configClasses (configFile >> "CfgNonAIVehicles");
private _nonAIVehicleClasses = "true" configClasses (configFile >> "CfgNonAIVehicles");

// Also consider static all object inheriting from bridges
private _cfgBase = configFile >> "CfgNonAIVehicles";
Expand Down