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