wherever you try to hide yourself, ultra cpu will find you too now after a while :-D .....

This commit is contained in:
Titus Tscharntke 2011-09-27 21:51:29 +00:00
parent d6cef888a6
commit 780cb81324
1 changed files with 5 additions and 3 deletions

View File

@ -464,9 +464,11 @@ void Ai::sendScoutPatrol(){
int unit;
bool possibleTargetFound= false;
if((aiInterface->getControlType() == ctCpuMega || aiInterface->getControlType() == ctNetworkCpuMega)
&& random.randRange(0, 1) == 1)
{
bool ultraResourceAttack= (aiInterface->getControlType() == ctCpuUltra || aiInterface->getControlType() == ctNetworkCpuUltra)
&& random.randRange(0, 2) == 1;
bool megaResourceAttack=(aiInterface->getControlType() == ctCpuMega || aiInterface->getControlType() == ctNetworkCpuMega)
&& random.randRange(0, 1) == 1;
if( megaResourceAttack || ultraResourceAttack) {
Map *map= aiInterface->getMap();
const TechTree *tt= aiInterface->getTechTree();