switching off random pathfinding intervals becasue it causes unit "warping" while walking ( more see forum )
This commit is contained in:
parent
34ef62c59f
commit
6fdc8db138
|
@ -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){
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue