mail[Wesnoth-commits] r34222 - /trunk/src/mouse_handler_base.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by alinktomine on March 29, 2009 - 01:57:
Author: alink
Date: Sun Mar 29 01:57:44 2009
New Revision: 34222

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34222&view=rev
Log:
Fix bug #13251: Units move on their own when using "next unit"

Modified:
    trunk/src/mouse_handler_base.cpp

Modified: trunk/src/mouse_handler_base.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mouse_handler_base.cpp?rev=34222&r1=34221&r2=34222&view=diff
==============================================================================
--- trunk/src/mouse_handler_base.cpp (original)
+++ trunk/src/mouse_handler_base.cpp Sun Mar 29 01:57:44 2009
@@ -258,9 +258,10 @@
        return false;
 }
 
-void mouse_handler_base::right_drag_end(int x, int y, const bool browse)
-{
-       left_click(x, y, browse);
+void mouse_handler_base::right_drag_end(int /*x*/, int /*y*/, const bool 
/*browse*/)
+{
+       //FIXME: This is called when we select an option in context-menu,
+       //       which is bad because that was not a real dragging
 }
 
 void mouse_handler_base::right_mouse_up(int /*x*/, int /*y*/, const bool 
/*browse*/)




Related Messages


Powered by MHonArc, Updated Sun Mar 29 04:20:25 2009