mail[Wesnoth-commits] r24854 - /trunk/src/intro.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:09:
Author: brunowolff
Date: Wed Mar 19 18:09:25 2008
New Revision: 24854

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

Modified:
    trunk/src/intro.cpp

Modified: trunk/src/intro.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/intro.cpp?rev=24854&r1=24853&r2=24854&view=diff
==============================================================================
--- trunk/src/intro.cpp (original)
+++ trunk/src/intro.cpp Wed Mar 19 18:09:25 2008
@@ -338,7 +338,7 @@
 
                const bool keydown = key[SDLK_SPACE] || key[SDLK_RETURN] || 
key[SDLK_KP_ENTER];
 
-               if(keydown && !last_key || next_button.pressed()) {
+               if((keydown && !last_key) || next_button.pressed()) {
                        if(skip == true || itor == 
utils::utf8_iterator::end(story)) {
                                break;
                        } else {




Related Messages


Powered by MHonArc, Updated Wed Mar 19 18:21:30 2008