From 742cbaa1c70108f4c07bde0849a3a95e69037adf Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 25 Mar 2011 20:07:27 +0000 Subject: [PATCH] - attempt to ignore resource cache for human players to see if this fixes harvesting location problems for human players --- source/glest_game/world/map.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/glest_game/world/map.cpp b/source/glest_game/world/map.cpp index a6199128..8623152f 100644 --- a/source/glest_game/world/map.cpp +++ b/source/glest_game/world/map.cpp @@ -363,7 +363,8 @@ bool Map::isResourceNear(const Vec2i &pos, const ResourceType *rt, Vec2i &resour } } - if(fallbackToPeersHarvestingSameResource == true && unit != NULL) { + if(fallbackToPeersHarvestingSameResource == true && unit != NULL && + unit->getFaction()->getControlType() != ctHuman &&unit->getFaction()->getControlType() != ctNetwork) { // Look for another unit that is currently harvesting the same resource // type right now