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

View File

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