-
Notifications
You must be signed in to change notification settings - Fork 736
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
Code cleanup of Hearing module #2146
Conversation
case (handgunWeapon _firer) : {(handgunItems _firer) select 0}; | ||
default {""}; | ||
_silencer = call { | ||
if (primaryWeapon _firer) exitWith {(primaryWeaponItems _firer) select 0}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has a string inside of a if statement and no comparison to _weapon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah i miss that
I tested the call/switch statements, I'm not seeing much benifit in bis's benchmark:
|
yeah right see what you mean hmm ok i try it self |
In fact looking at those tests, it seems to be faster to stick with the |
but if you use a |
Code cleanup of Hearing module
looks good, merging before looking at #1988 to avoid conflicts. |
Code cleanup of Hearing module.