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

0009699: Fix isInsideRadarArea() not working with negative dimensions #157

Merged

Conversation

4O4
Copy link
Contributor

@4O4 4O4 commented Aug 17, 2017

See commit messages / comments in code for details. If this is merged, this wiki page should be updated for consistency.

Test script: https://github.com/4O4/mtasa-lua-tests/tree/master/%5Btests%5D/test-radararea-negative-numbers

Fixes https://bugs.mtasa.com/view.php?id=9699

Names like "vecBottomLeft", "leftX", "bottomY" are confusing when the
rectangle size is allowed to be negative. Lua function signature on
the wiki page must be adjusted too.
@4O4
Copy link
Contributor Author

4O4 commented Oct 15, 2017

Any chance for review or merge? :)

Copy link
Member

@sbx320 sbx320 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I'm not quite sure why IsInsideRadarArea takes a pointer at all (rather than a const&). But I guess that's out of scope for this pull request anyway.

@Necktrox Necktrox added the bug Something isn't working label Nov 15, 2017
@Necktrox Necktrox merged commit b108390 into multitheftauto:master Nov 15, 2017
@patrikjuvonen patrikjuvonen added this to In progress in release/v1.5.6 via automation Aug 7, 2018
@patrikjuvonen patrikjuvonen added this to the 1.5.6 milestone Aug 7, 2018
@patrikjuvonen patrikjuvonen moved this from In progress to Done in release/v1.5.6 Aug 7, 2018
@patrikjuvonen patrikjuvonen changed the title Fix isInsideRadarArea() not working with negative dimensions 0009699: Fix isInsideRadarArea() not working with negative dimensions Sep 4, 2018
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
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants