Skip to content

Conversation

patrikjuvonen
Copy link
Contributor

@patrikjuvonen patrikjuvonen commented Jul 3, 2018

Mantis Bug Tracker issue:
9742

Co-contributors:
@4O4 (PR)

I was fixing someone's Lua script and that's how I encountered this bug. I searched for the issue on Mantis Bug Tracker and then I found a link to @4O4's old PR which I reviewed. My patch is slightly different. I read the comments @qaisjp had written. I did not directly copy any code from his PR, but I do want to give him credits obviously for delivering a patch before me.

Function:
createColPolygon

Summary:

  • Passing in Vec2s client-side was not working;
  • Passing in Vec2s server-side was limited to 4;
  • Neither of which threw errors if not all 3 required points were given (due to it reading argStream wrong);
  • Pretty small and simple fix, easy to test.

Testing:
While I could provide my own tests, I found that @4O4's tests do the same thing. All tests passed and making complicated polygon colshapes is working.

@4O4
Copy link
Contributor

4O4 commented Jul 4, 2018

There was a nice PR-merge streak in this project recently so I really do hope this PR won't get stuck like the one I created 😄

@ghost
Copy link

ghost commented Jul 4, 2018

Good job! There's not much code to review, if it works properly, I'll be happy to merge.

@qaisjp qaisjp merged commit a24b3ab into multitheftauto:master Jul 5, 2018
@qaisjp
Copy link
Contributor

qaisjp commented Jul 5, 2018

Thank you both @4O4 and @patrikjuvonen. Good work.

@patrikjuvonen patrikjuvonen deleted the issue-9742 branch July 5, 2018 16:12
@patrikjuvonen patrikjuvonen added the bug Something isn't working label Aug 7, 2018
@patrikjuvonen patrikjuvonen added this to the 1.5.6 milestone Aug 7, 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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants