mail[Wesnoth-commits] r24857 - /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:23:
Author: brunowolff
Date: Wed Mar 19 18:23:19 2008
New Revision: 24857

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24857&view=rev
Log:
Silence gcc 4.3 warning by adding parens around && clause near ||.

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=24857&r1=24856&r2=24857&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Wed Mar 19 18:23:19 2008
@@ -1094,7 +1094,7 @@
 
 bool mouse_handler::is_right_click(const SDL_MouseButtonEvent& event)
 {
-       return event.button == SDL_BUTTON_RIGHT || event.button == 
SDL_BUTTON_LEFT && command_active();
+       return event.button == SDL_BUTTON_RIGHT || (event.button == 
SDL_BUTTON_LEFT && command_active());
 }
 
 void mouse_handler::left_click(const SDL_MouseButtonEvent& event, const bool 
browse)




Related Messages


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