eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot/game results.cpp


From: Olivier Teulière
Subject: [Eliot-dev] eliot/game results.cpp
Date: Sat, 20 Feb 2010 13:31:13 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>       10/02/20 13:31:13

Modified files:
        game           : results.cpp 

Log message:
        Fixed a bug in PercentResults: AI players with a level lower than 100 
could still play as if they were (almost) at level 100!

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/game/results.cpp?cvsroot=eliot&r1=1.19&r2=1.20

Patches:
Index: results.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/game/results.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- results.cpp 3 Jul 2009 23:00:12 -0000       1.19
+++ results.cpp 20 Feb 2010 13:31:12 -0000      1.20
@@ -197,7 +197,9 @@
     }
 
     // Keep only the rounds with the "chosenPoints" score
+    vector<Round>::iterator last =
     std::remove_if(m_rounds.begin(), m_rounds.end(), Predicate(chosenPoints));
+    m_rounds.erase(last, m_rounds.end());
     ASSERT(!m_rounds.empty(), "Bug in PercentResults");
 
     // Sort the remaining rounds




reply via email to

[Prev in Thread] Current Thread [Next in Thread]