Author: brunowolff
Date: Wed Mar 19 17:11:07 2008
New Revision: 24837
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24837&view=rev
Log:
Silence gcc 4.3 warning by adding parens around && clause near ||.
Modified:
trunk/src/widgets/menu.cpp
Modified: trunk/src/widgets/menu.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/widgets/menu.cpp?rev=24837&r1=24836&r2=24837&view=diff
==============================================================================
--- trunk/src/widgets/menu.cpp (original)
+++ trunk/src/widgets/menu.cpp Wed Mar 19 17:11:07 2008
@@ -603,8 +603,8 @@
// Only pass key events if we have the focus
if (focus(&event))
key_press(event.key.keysym.sym);
- } else if(event.type == SDL_MOUSEBUTTONDOWN &&
- (event.button.button == SDL_BUTTON_LEFT || event.button.button
== SDL_BUTTON_RIGHT) ||
+ } else if((event.type == SDL_MOUSEBUTTONDOWN &&
+ (event.button.button == SDL_BUTTON_LEFT || event.button.button
== SDL_BUTTON_RIGHT)) ||
event.type == DOUBLE_CLICK_EVENT) {
int x = 0;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits