- set pathfinder values back to be compatible with beta2

This commit is contained in:
Mark Vejvoda
2011-04-14 03:27:34 +00:00
parent 06fb3decda
commit a04557ee7f
2 changed files with 4 additions and 3 deletions

View File

@@ -40,8 +40,8 @@ namespace Glest{ namespace Game{
const int PathFinder::maxFreeSearchRadius = 10; const int PathFinder::maxFreeSearchRadius = 10;
//const int PathFinder::pathFindNodesMax= 400; //const int PathFinder::pathFindNodesMax= 400;
int PathFinder::pathFindNodesAbsoluteMax = 1200; int PathFinder::pathFindNodesAbsoluteMax = 800;
int PathFinder::pathFindNodesMax = 300; int PathFinder::pathFindNodesMax = 400;
const int PathFinder::pathFindRefresh = 10; const int PathFinder::pathFindRefresh = 10;
const int PathFinder::pathFindBailoutRadius = 20; const int PathFinder::pathFindBailoutRadius = 20;

View File

@@ -286,7 +286,8 @@ void World::updateAllFactionUnits() {
Chrono chrono; Chrono chrono;
chrono.start(); chrono.start();
for(;chrono.getMillis() < 10000;) { const int MAX_FACTION_THREAD_WAIT_MILLISECONDS = 20000;
for(;chrono.getMillis() < MAX_FACTION_THREAD_WAIT_MILLISECONDS;) {
workThreadsFinished = true; workThreadsFinished = true;
for(int i = 0; i < factionCount; ++i) { for(int i = 0; i < factionCount; ++i) {
Faction *faction = getFaction(i); Faction *faction = getFaction(i);