switching off random pathfinding intervals becasue it causes unit "warping" while walking ( more see forum )

This commit is contained in:
Titus Tscharntke 2011-06-26 23:51:37 +00:00
parent 34ef62c59f
commit 6fdc8db138
2 changed files with 2 additions and 2 deletions

View File

@ -474,7 +474,7 @@ void Ai::sendScoutPatrol(){
if(possibleTargetFound == false){
startLoc= (startLoc + 1) % aiInterface->getMapMaxPlayers();
pos= aiInterface->getStartLocation(startLoc);
printf("och noe\n");
//printf("normal target used\n");
}
if(aiInterface->getHomeLocation() != pos){

View File

@ -46,7 +46,7 @@ const int PathFinder::pathFindRefresh = 10;
const int PathFinder::pathFindBailoutRadius = 20;
const int PathFinder::pathFindExtendRefreshForNodeCount = 25;
const int PathFinder::pathFindExtendRefreshNodeCountMin = 40;
const int PathFinder::pathFindExtendRefreshNodeCountMax = 60;
const int PathFinder::pathFindExtendRefreshNodeCountMax = 40;
PathFinder::PathFinder() {
for(int i = 0; i < GameConstants::maxPlayers; ++i) {