From 6fdc8db1381e05010fcbbdc5f4679fdbdadf0ab7 Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Sun, 26 Jun 2011 23:51:37 +0000 Subject: [PATCH] switching off random pathfinding intervals becasue it causes unit "warping" while walking ( more see forum ) --- source/glest_game/ai/ai.cpp | 2 +- source/glest_game/ai/path_finder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/ai/ai.cpp b/source/glest_game/ai/ai.cpp index 9efe8d4e..b57ad85d 100644 --- a/source/glest_game/ai/ai.cpp +++ b/source/glest_game/ai/ai.cpp @@ -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){ diff --git a/source/glest_game/ai/path_finder.cpp b/source/glest_game/ai/path_finder.cpp index f7579e23..a91ee8ef 100644 --- a/source/glest_game/ai/path_finder.cpp +++ b/source/glest_game/ai/path_finder.cpp @@ -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) {