mail[Wesnoth-commits] r43880 - /trunk/src/ai/testing/aspect_attacks.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by terraninfo on July 04, 2010 - 10:09:
Author: crab
Date: Sun Jul  4 10:09:29 2010
New Revision: 43880

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43880&view=rev
Log:
remove unnecessary code

Modified:
    trunk/src/ai/testing/aspect_attacks.cpp

Modified: trunk/src/ai/testing/aspect_attacks.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/testing/aspect_attacks.cpp?rev=43880&r1=43879&r2=43880&view=diff
==============================================================================
--- trunk/src/ai/testing/aspect_attacks.cpp (original)
+++ trunk/src/ai/testing/aspect_attacks.cpp Sun Jul  4 10:09:29 2010
@@ -136,13 +136,6 @@
        gamemap &map_ = *resources::game_map;
        unit_map &units_ = *resources::units;
        std::vector<team> &teams_ = *resources::teams;
-
-       static double best_results[6];
-       if(result.empty()) {
-               for(int i = 0; i != 6; ++i) {
-                       best_results[i] = 0.0;
-               }
-       }
 
        const size_t max_positions = 1000;
        if(result.size() > max_positions && !cur_analysis.movements.empty()) {




Related Messages


Powered by MHonArc, Updated Sun Jul 04 11:40:23 2010