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

Fix diagonal movement #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix diagonal movement #2

wants to merge 2 commits into from

Conversation

matrefeytontias
Copy link
Member

Entities were able to execute diagonal moves that made them cross one or two illegal tiles.

When allowing diagonals, entities were able to cross through walls that have touching vertices. Moreover, the code allowed for entities to enter halfway into a wall.
@ibilon
Copy link

ibilon commented Aug 8, 2015

I'm not familiar with this library so I'll have to look into it before merging.

After a quick look I'm a bit confused, the horizontal neighbors are added without check so I assumed this is done in the search but it doesn't look like it's the case either.

So yeah I'll have to investigate that ;)

@matrefeytontias
Copy link
Member Author

Bumpity bump, in case anyone else uses this, the fix does fix things, so it might be a good idea to merge it.

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.

2 participants