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

Replaced TileMap::PosKey with Vector2i #37286

Closed
wants to merge 1 commit into from

Conversation

Janglee123
Copy link
Contributor

No description provided.

@Chaosus Chaosus added this to the 4.0 milestone Mar 25, 2020
@@ -225,6 +195,7 @@ class TileMap : public Node2D {

void _set_old_cell_size(int p_size) { set_cell_size(Size2(p_size, p_size)); }
int _get_old_cell_size() const { return cell_size.x; }
Vector2i _vec2i_to_quadrant(const Vector2i &v, const int &p_quadrant_size) const;
Copy link
Member

Choose a reason for hiding this comment

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

_vec2i_to_quadrant isn't clear, since it takes a Vector2i and returns a Vector2i.
It should be _pos_to_quadrant or similar.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it could be _map_to_quadrant IMO.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good.

@aaronfranke aaronfranke requested a review from akien-mga March 25, 2020 18:32
@akien-mga
Copy link
Member

Needs a rebase, otherwise seems good.

@aaronfranke
Copy link
Member

Related to (and will likely conflict with) #39976

@aaronfranke aaronfranke requested a review from reduz September 22, 2020 18:53
@qarmin
Copy link
Contributor

qarmin commented Oct 25, 2020

Seems that this will fix #41296, but needs rebase

@aaronfranke
Copy link
Member

This has been implemented with #48535, so this PR has been replaced. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants