simon-svn: puzzles: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Thu Feb 24 19:06:48 GMT 2011
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 9108
Date: 2011-02-24 19:06:48 +0000 (Thu, 24 Feb 2011)
Log message (7 lines):
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.
Modified files:
U puzzles/grid.c
U puzzles/grid.h
Links:
http://svn.tartarus.org/sgt/?rev=9108&view=rev
http://svn.tartarus.org/sgt/puzzles/grid.c?rev=9108&r1=9107&r2=9108
http://svn.tartarus.org/sgt/puzzles/grid.h?rev=9108&r1=9107&r2=9108
More information about the tartarus-commits
mailing list