From 780cb813247fa653c8969de6b548a5944967d996 Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Tue, 27 Sep 2011 21:51:29 +0000 Subject: [PATCH] wherever you try to hide yourself, ultra cpu will find you too now after a while :-D ..... --- source/glest_game/ai/ai.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/glest_game/ai/ai.cpp b/source/glest_game/ai/ai.cpp index 8678252f..9e26b976 100644 --- a/source/glest_game/ai/ai.cpp +++ b/source/glest_game/ai/ai.cpp @@ -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();