Skip to content

Fixed HexMap::GetHexesWithinRangeOf#4

Open
TommasoBianchi wants to merge 2 commits intoquill18:masterfrom
TommasoBianchi:master
Open

Fixed HexMap::GetHexesWithinRangeOf#4
TommasoBianchi wants to merge 2 commits intoquill18:masterfrom
TommasoBianchi:master

Conversation

@TommasoBianchi
Copy link

The center of the hexes returned by this function was not the same as the one passed as a parameter

The center of the hexes returned by this function was not the same as the one passed as a parameter
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

You could also change the "<" in the loops to "<=" instead of using the -1/+1

This way the code is more symmetric and understandable
@TommasoBianchi
Copy link
Author

Yes you're right, I'll change it. To me the <= seems to make the code more symmetric

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant