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

UI fix for drops outside of case logic #11

Merged
merged 7 commits into from
Dec 7, 2012

Conversation

barneycarroll
Copy link
Contributor

If you drag a piece onto an illegal square or off the table, no other pieces can be moved unless the badly dropped piece is legally dropped.

This adds an extra fallback clause if no legal move conditions are met on drop with the same result as 'same square'.

@glinscott
Copy link
Owner

Thanks for the bug report, and the pull request! The commit seems to be empty though?

@barneycarroll
Copy link
Contributor Author

Oops, sorry. The pertinent change is here: 9c8e7af

@glinscott
Copy link
Owner

Ah, great, thanks. Maybe merge the move == null check with the "if (startX == endX && startY == endY)" check just a little earlier?

glinscott added a commit that referenced this pull request Dec 7, 2012
UI fix for drops outside of case logic
@glinscott glinscott merged commit 850686c into glinscott:master Dec 7, 2012
@glinscott
Copy link
Owner

Thanks! Merged.

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