forked from mirrors/0ad
Remove a function relying on systems that are not optimized at all. This function is not actually used by Petra.
If it is needed at some point, this map should be handled and updated the same way as the passability map and territory map are. Refs #4191 This was SVN commit r18760.
This commit is contained in:
@@ -225,7 +225,6 @@ public:
|
||||
m_ScriptInterface->RegisterFunction<void, CAIWorker::ForceGC>("ForceGC");
|
||||
|
||||
m_ScriptInterface->RegisterFunction<JS::Value, JS::HandleValue, JS::HandleValue, pass_class_t, CAIWorker::ComputePath>("ComputePath");
|
||||
m_ScriptInterface->RegisterFunction<JS::Value, pass_class_t, CAIWorker::GetConnectivityGrid>("GetConnectivityGrid");
|
||||
|
||||
m_ScriptInterface->RegisterFunction<void, std::wstring, std::vector<u32>, u32, u32, u32, CAIWorker::DumpImage>("DumpImage");
|
||||
}
|
||||
@@ -323,18 +322,6 @@ public:
|
||||
waypoints.emplace_back(wp.x, wp.z);
|
||||
}
|
||||
|
||||
static JS::Value GetConnectivityGrid(ScriptInterface::CxPrivate* pCxPrivate, pass_class_t passClass)
|
||||
{
|
||||
ENSURE(pCxPrivate->pCBData);
|
||||
CAIWorker* self = static_cast<CAIWorker*> (pCxPrivate->pCBData);
|
||||
JSContext* cx(self->m_ScriptInterface->GetContext());
|
||||
JSAutoRequest rq(cx);
|
||||
|
||||
JS::RootedValue retVal(cx);
|
||||
self->m_ScriptInterface->ToJSVal<Grid<u16> >(cx, &retVal, self->m_LongPathfinder.GetConnectivityGrid(passClass));
|
||||
return retVal;
|
||||
}
|
||||
|
||||
static void ForceGC(ScriptInterface::CxPrivate* pCxPrivate)
|
||||
{
|
||||
PROFILE3("AI compute GC");
|
||||
|
||||
Reference in New Issue
Block a user