/1.patch Secret
Created
December 9, 2015 16:49
Comment out teleport code in sectormap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/AI/VCAI/VCAI.cpp b/AI/VCAI/VCAI.cpp | |
index 1b98c9a..9224cf3 100644 | |
--- a/AI/VCAI/VCAI.cpp | |
+++ b/AI/VCAI/VCAI.cpp | |
@@ -3246,7 +3246,7 @@ For ship construction etc, another function (goal?) is needed | |
} | |
} | |
- for (auto gate : s->subterraneanGates) | |
+/* for (auto gate : s->subterraneanGates) | |
{ | |
auto gatePair = ai->knownSubterraneanGates.find(gate); | |
if (gatePair != ai->knownSubterraneanGates.end()) | |
@@ -3259,7 +3259,7 @@ For ship construction etc, another function (goal?) is needed | |
sectorQueue.push(neigh); | |
} | |
} | |
- } | |
+ }*/ | |
} | |
if(!preds[dest]) | |
@@ -3373,7 +3373,7 @@ For ship construction etc, another function (goal?) is needed | |
//TODO: pop sectors linked by Subterranean Gate in loop | |
- auto firstGate = boost::find_if(src->subterraneanGates, [=](const CGObjectInstance * gate) -> bool | |
+/* auto firstGate = boost::find_if(src->subterraneanGates, [=](const CGObjectInstance * gate) -> bool | |
{ | |
//make sure no hero block the way | |
auto pos = ai->knownSubterraneanGates[gate]->visitablePos(); | |
@@ -3386,7 +3386,7 @@ For ship construction etc, another function (goal?) is needed | |
{ | |
//TODO: pahtfinder can find path through subterranean gates, but this function only reaches closest gate | |
return (*firstGate)->visitablePos(); | |
- } | |
+ }*/ | |
//TODO | |
//Monolith? Whirlpool? ... | |
return ret; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment