Skip to content

Conversation

@Zangomangu
Copy link
Contributor

@Zangomangu Zangomangu commented May 15, 2020

Fixed by inverting fGunDirectionY if doing driveby and aiming left or behind.
Fixes #1440

@qaisjp qaisjp added the bug Something isn't working label May 15, 2020
Copy link
Contributor

@qaisjp qaisjp left a comment

Choose a reason for hiding this comment

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

The nested ifs are a bit intense - please can you use return where possible?

@ghost ghost changed the title Fix #1440 Fix #1440 Driveby aiming is inverted in some cases May 16, 2020
@StrixG StrixG linked an issue May 16, 2020 that may be closed by this pull request
@Zangomangu Zangomangu requested a review from qaisjp May 17, 2020 14:14
@Zangomangu Zangomangu requested a review from a user May 17, 2020 17:30
@Zangomangu
Copy link
Contributor Author

I've tested it again after the commits.

@qaisjp qaisjp force-pushed the driveby-pitch-fix branch from 652f1ee to 525c920 Compare May 21, 2020 15:09
Copy link
Contributor

@qaisjp qaisjp left a comment

Choose a reason for hiding this comment

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

Refactor looks good. Force pushed to keep the bugfix and the refactor in distinct commits, so that we can do a rebase-merge or a merge commit.

@ghost ghost merged commit 7399bf6 into multitheftauto:master May 21, 2020
@qaisjp qaisjp added this to the 1.5.8 milestone May 21, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Driveby aiming is inverted in some cases

4 participants