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

ProjectileTracking - Stop tracking stationary objects #985

Merged
merged 1 commit into from
Sep 17, 2018

Conversation

PabstMirror
Copy link
Contributor

@PabstMirror PabstMirror commented Sep 15, 2018

@PabstMirror PabstMirror added this to the 3.9 milestone Sep 15, 2018

_bulletData pushBack [(getPos _projectile), vectorMagnitude (velocity _projectile)];

_data set [1, _bulletData];
Copy link
Contributor

Choose a reason for hiding this comment

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

did you delete this line intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

{
    _bulletData = _data select 1;
} else {
    _data = [_handle, _bulletData];
};

_data set [1, _bulletData];

either way _bulletData is going to already be set in _data


_data set [1, _bulletData];

GVAR(projectileData) set [_index, _data];
Copy link
Contributor

Choose a reason for hiding this comment

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

same here? outside of the if block?

Copy link
Contributor

Choose a reason for hiding this comment

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

These are not needed, because only commands that modify the array are used. Previously the function set a sub array, and a sub sub array to exactly what they were before.

@commy2 commy2 merged commit 4dc1986 into master Sep 17, 2018
@commy2 commy2 deleted the dontTrackVapeGrenades branch September 17, 2018 08:43
ViperMaul added a commit that referenced this pull request Sep 19, 2018
* master:
  Add Feature Camera Player EH (#982)
  German brands for JR and JAM components (#988)
  veteran29 Polish translation updates master (#986)
  German translation, part 3 (#981)
  German translation, part 2 (#980)
  German translation, part 1 (#979)
  add Joint Ammo Magazines A3 (#928)
  CBA_fnc_getVolume not calculating volume correctly (#984)
  ProjectileTracking - Stop tracking stationary objects (#985)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants