FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update fn_clearVehicleAmmo.sqf by FlorianGH · Pull Request #734 · AsYetUntitled/Framework · GitHub

Update fn_clearVehicleAmmo.sqf - #734

Open
FlorianGH wants to merge 2 commits into
AsYetUntitled:v5.X.Xfrom
FlorianGH:patch-1
Open

FlorianGH wants to merge 2 commits into
AsYetUntitled:v5.X.Xfrom
FlorianGH:patch-1

Conversation

Copy link
Copy Markdown

Changes proposed in this pull request:

  • Changed If to switch

  • I have tested my changes and corrected any errors found

It's just a little thing but it needs to be done.

Copy link
Copy Markdown
Contributor

moving the clearWeaponCargoGlobal _vehicle; to the top and using exitWith instead of then (or a switch) would actually be the best solution considering performance

_vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Red",[1]];
_vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Red",[2]];
};
private ["_vehicle","_veh"];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

We've managed to duplicate these 3 lines twice. It'd be best to remove the BIS_fnc_param and the private ARRAY and replace with params (obviously removing the duplication).

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL