Revision: 2289
          http://synfig.svn.sourceforge.net/synfig/?rev=2289&view=rev
Author:   dooglus
Date:     2008-11-26 19:22:53 +0000 (Wed, 26 Nov 2008)

Log Message:
-----------
Use <= when comparing distances to give priority to the uppermost duck in the 
event of a draw.

Modified Paths:
--------------
    synfig-studio/trunk/src/gtkmm/duckmatic.cpp

Modified: synfig-studio/trunk/src/gtkmm/duckmatic.cpp
===================================================================
--- synfig-studio/trunk/src/gtkmm/duckmatic.cpp 2008-11-26 19:22:19 UTC (rev 
2288)
+++ synfig-studio/trunk/src/gtkmm/duckmatic.cpp 2008-11-26 19:22:53 UTC (rev 
2289)
@@ -894,7 +894,7 @@
                else if(duck->get_type()&Duck::TYPE_RADIUS)
                        dist*=0.9999;
 
-               if(dist<closest)
+               if(dist<=closest)
                {
                        closest=dist;
                        ret=duck;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to