mail[Wesnoth-commits] r24845 - /trunk/src/ai_attack.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 - 17:47:
Author: brunowolff
Date: Wed Mar 19 17:39:17 2008
New Revision: 24845

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

Modified:
    trunk/src/ai_attack.cpp

Modified: trunk/src/ai_attack.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai_attack.cpp?rev=24845&r1=24844&r2=24845&view=diff
==============================================================================
--- trunk/src/ai_attack.cpp (original)
+++ trunk/src/ai_attack.cpp Wed Mar 19 17:39:17 2008
@@ -146,7 +146,7 @@
                        }
                }
 
-               if(is_flanked && enemy_units_around > 2 || enemy_units_around 
= accessible_tiles - 1)
+               if((is_flanked && enemy_units_around > 2) || 
enemy_units_around >= accessible_tiles - 1)
                        is_surrounded = true;
 
 




Related Messages


Powered by MHonArc, Updated Wed Mar 19 18:01:55 2008