Skip to content

Instantly share code, notes, and snippets.

@ArseniyShestakov
Created December 9, 2015 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArseniyShestakov/0ec0db4aa6c54ebf7961 to your computer and use it in GitHub Desktop.
Save ArseniyShestakov/0ec0db4aa6c54ebf7961 to your computer and use it in GitHub Desktop.
Comment out teleport code in sectormap
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