mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 17:59:48 +02:00
- set pathfinder values back to be compatible with beta2
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user