From: simon Date: Thu, 24 Feb 2011 19:06:48 +0000 (+0000) Subject: Retire the 'middle_face' field in 'struct grid', together with the X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/f839ef77051d132ca1ffb2e95465e6ca08dfded8?ds=inline;hp=f839ef77051d132ca1ffb2e95465e6ca08dfded8 Retire the 'middle_face' field in 'struct grid', together with the overly complicated algorithm that uses it to home in on the grid edge closest to a mouse click. That algorithm is being stressed beyond its limit by the new grid type, and it's unnecessary anyway given that no sensibly sized puzzle grid is going to be big enough to make it prohibitively expensive just to do the trivial approach of iterating over all edges and finding the closest of the eligible ones. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9108 cda61777-01e9-0310-a592-d414129be87e ---