-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Conversation
scene/2d/tile_map.h
Outdated
@@ -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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
3725a21
to
c2edc0a
Compare
Needs a rebase, otherwise seems good. |
c2edc0a
to
954055c
Compare
Related to (and will likely conflict with) #39976 |
Seems that this will fix #41296, but needs rebase |
This has been implemented with #48535, so this PR has been replaced. Closing. |
No description provided.