dripton / Slugathon

Clone of the old Avalon Hill fantasy wargame Titan, using Python / PyGTK / Twisted
https://github.com/dripton/Slugathon/wiki
8 stars 2 forks source link

Clicks near the edge of a BattleHex sometimes don't work #102

Closed dripton closed 13 years ago

dripton commented 13 years ago

Clicks near the edge of a BattleHex sometimes don't register, or sometimes even end up affecting a nearby hex.

dripton commented 13 years ago

[f0911b155ff6a4d672ff77088a80b2ea92cc938c] fixed a bug in point_in_polygon, but some clicks still fail to register as inside the hex.

dripton commented 13 years ago

This also applies on the masterboard. The code in point_in_polygon assumes convex polygons, which is incorrect for masterboard hexes.

dripton commented 13 years ago

Fix guiutils.point_in_polygon Closed by 74a2daea1c58563a624ef059805639566cdfc74c