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*/)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits