Skip to content

Paint Setup refactor#13633

Merged
duncanspumpkin merged 3 commits into
OpenRCT2:developfrom
duncanspumpkin:paint
Dec 25, 2020
Merged

Paint Setup refactor#13633
duncanspumpkin merged 3 commits into
OpenRCT2:developfrom
duncanspumpkin:paint

Conversation

@duncanspumpkin

Copy link
Copy Markdown
Contributor

Whilst implementing the same function for OpenLoco I noticed an opertunity to simplify the Paint Generate code. Then of course there was poor performance so had to introduce the template version to simplify the execution. Comments welcome to if this is easier to understand or not.

@tupaschoal tupaschoal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm, I guess the end result is indeed a bit clearer to follow. I look at each commit and it looks ok

@duncanspumpkin

Copy link
Copy Markdown
Contributor Author

I made a slight mistake in the middle commits but it was corrected at the end. I think there is two rotations of the coordinates.

@tupaschoal tupaschoal added the squash merge A PR that should be squashed on merge. label Dec 23, 2020
@tupaschoal

Copy link
Copy Markdown
Member

Yea, I noticed that and the casts coming back

@duncanspumpkin duncanspumpkin merged commit 556c786 into OpenRCT2:develop Dec 25, 2020
@duncanspumpkin duncanspumpkin deleted the paint branch December 25, 2020 08:06
@tupaschoal tupaschoal added this to the v0.3.3 milestone Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

squash merge A PR that should be squashed on merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants