mail[Wesnoth-commits] r24862 - /trunk/src/pathfind.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:34:
Author: brunowolff
Date: Wed Mar 19 18:34:28 2008
New Revision: 24862

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

Modified:
    trunk/src/pathfind.cpp

Modified: trunk/src/pathfind.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/pathfind.cpp?rev=24862&r1=24861&r2=24862&view=diff
==============================================================================
--- trunk/src/pathfind.cpp (original)
+++ trunk/src/pathfind.cpp Wed Mar 19 18:34:28 2008
@@ -52,7 +52,7 @@
                        gamemap::location adj[6];
                        get_adjacent_tiles(loc,adj);
                        for(int i = 0; i != 6; ++i) {
-                               if(!map.on_board(adj[i]) || vacancy == 
VACANT_CASTLE && !map.is_castle(adj[i]))
+                               if(!map.on_board(adj[i]) || (vacancy == 
VACANT_CASTLE && !map.is_castle(adj[i])))
                                        continue;
 
                                const gamemap::location res =




Related Messages


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