summaryrefslogtreecommitdiffstats
path: root/src/Generating/PrefabPiecePool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Generating/PrefabPiecePool.cpp')
-rw-r--r--src/Generating/PrefabPiecePool.cpp36
1 files changed, 2 insertions, 34 deletions
diff --git a/src/Generating/PrefabPiecePool.cpp b/src/Generating/PrefabPiecePool.cpp
index b78251d78..1fbdac8af 100644
--- a/src/Generating/PrefabPiecePool.cpp
+++ b/src/Generating/PrefabPiecePool.cpp
@@ -350,18 +350,8 @@ bool cPrefabPiecePool::LoadCubesetPieceVer1(const AString & a_FileName, cLuaStat
else
{
auto p = prefab.release();
-
- int IsClosurePiece = 0;
- a_LuaState.GetNamedValue("Metadata.IsClosurePiece", IsClosurePiece);
- if (IsClosurePiece != 0)
- {
- m_ClosurePieces.push_back(p);
- }
- else
- {
- m_AllPieces.push_back(p);
- AddToPerConnectorMap(p);
- }
+ m_AllPieces.push_back(p);
+ AddToPerConnectorMap(p);
}
return true;
@@ -773,28 +763,6 @@ cPieces cPrefabPiecePool::GetPiecesWithConnector(int a_ConnectorType)
-cPieces cPrefabPiecePool::GetClosurePiecesWithConnector(int a_ConnectorType)
-{
- cPieces pieces;
- for (auto& piece : m_ClosurePieces)
- {
- auto connectors = piece->GetConnectors();
- for (auto& connector : connectors)
- {
- if (connector.m_Type == a_ConnectorType)
- {
- pieces.push_back(piece);
- break;
- }
- }
- }
- return pieces;
-}
-
-
-
-
-
cPieces cPrefabPiecePool::GetStartingPieces(void)
{
if (m_StartingPieces.empty())