- stupid compiler fix for vc++ (including limits gives streflop a fit)

This commit is contained in:
Mark Vejvoda 2010-09-29 22:59:16 +00:00
parent 3e0a87549c
commit 6013a96efd
1 changed files with 3 additions and 4 deletions

View File

@ -10,16 +10,14 @@
// ==============================================================
#include "ai.h"
#include <ctime>
#include "ai_interface.h"
#include "ai_rule.h"
#include "unit_type.h"
#include "unit.h"
#include "program.h"
#include "config.h"
#include <limits>
//#include <limits>
#include "leak_dumper.h"
using namespace Shared::Graphics;
@ -188,7 +186,8 @@ float Ai::getRatioOfClass(UnitClass uc){
const ResourceType *Ai::getNeededResource(int unitIndex) {
int amount = numeric_limits<int>::max();
//int amount = numeric_limits<int>::max();
int amount = INT_MAX;
const ResourceType *neededResource= NULL;
const TechTree *tt= aiInterface->getTechTree();