* Add Linux Makfile (preliminary version)
* Fix a signed/unsigned bug
This commit is contained in:
jean.chalard
2008-11-03 10:30:57 +00:00
parent 440d6d7629
commit 4b762565ce
3 changed files with 23 additions and 5 deletions

View File

@@ -64,9 +64,9 @@ void AIStats::updateStats(){
save();
}
bool AIStats::isInTop(MTGCardInstance * card,int max, bool tooSmallCountsForTrue ){
bool AIStats::isInTop(MTGCardInstance * card, unsigned int max, bool tooSmallCountsForTrue ){
if (stats.size()<max) return tooSmallCountsForTrue;
int n = 0;
unsigned int n = 0;
MTGCard * source = card->model;
int id = source->getMTGId();
list<AIStat *>::iterator it;
@@ -126,4 +126,4 @@ void AIStats::save(){
file.close();
}
}
}