mail[Wesnoth-commits] r24858 - /trunk/src/mouse_events.cpp


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

Header


Content

Posted by bruno on March 19, 2008 - 18:25:
Author: brunowolff
Date: Wed Mar 19 18:25:39 2008
New Revision: 24858

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24858&view=rev
Log:
Semantic change
What looks to be a typo of & instead of && fixed.
Silence gcc 4.3 warning about parens around &.

Modified:
    trunk/src/mouse_events.cpp

Modified: trunk/src/mouse_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mouse_events.cpp?rev=24858&r1=24857&r2=24858&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Wed Mar 19 18:25:39 2008
@@ -758,7 +758,7 @@
        // While we check the mouse buttons state, we also grab fresh 
position data.
        int mx = drag_from_x_; // some default value to prevent unlikely SDL 
bug
        int my = drag_from_y_;
-       if (dragging_ && !dragging_started_ && (SDL_GetMouseState(&mx,&my) & 
SDL_BUTTON_LEFT != 0)) {
+       if (dragging_ && !dragging_started_ && (SDL_GetMouseState(&mx,&my) && 
SDL_BUTTON_LEFT != 0)) {
                const double drag_distance = std::pow((double) (drag_from_x_- 
mx), 2) + std::pow((double) (drag_from_y_- my), 2);
                if (drag_distance > drag_threshold*drag_threshold) {
                        dragging_started_ = true;




Related Messages


Powered by MHonArc, Updated Wed Mar 19 18:41:25 2008