Author: shadowmaster
Date: Wed Mar 19 18:51:45 2008
New Revision: 24871
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24871&view=rev
Log:
* Fixed the *real* typo originated by r24858; the operator intended there was &
to check against a bitfield
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=24871&r1=24870&r2=24871&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Wed Mar 19 18:51:45 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