diff options
author | Mattes D <github@xoft.cz> | 2017-02-13 16:50:35 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-02-13 16:50:35 +0100 |
commit | 585571d78ca9ff5e384cae8d006a391df0f17ff7 (patch) | |
tree | de5267740459c2b9b6b6a1296e9d43eb7ac8ec28 /src/Generating/VillageGen.cpp | |
parent | Made survival the default gamemode (#3563) (diff) | |
download | cuberite-585571d78ca9ff5e384cae8d006a391df0f17ff7.tar cuberite-585571d78ca9ff5e384cae8d006a391df0f17ff7.tar.gz cuberite-585571d78ca9ff5e384cae8d006a391df0f17ff7.tar.bz2 cuberite-585571d78ca9ff5e384cae8d006a391df0f17ff7.tar.lz cuberite-585571d78ca9ff5e384cae8d006a391df0f17ff7.tar.xz cuberite-585571d78ca9ff5e384cae8d006a391df0f17ff7.tar.zst cuberite-585571d78ca9ff5e384cae8d006a391df0f17ff7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/VillageGen.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Generating/VillageGen.cpp b/src/Generating/VillageGen.cpp index ccea3338d..6d5216a16 100644 --- a/src/Generating/VillageGen.cpp +++ b/src/Generating/VillageGen.cpp @@ -64,22 +64,22 @@ public: BA.Create(len, 1, 3, cBlockArea::baTypes | cBlockArea::baMetas); BA.Fill(cBlockArea::baTypes | cBlockArea::baMetas, E_BLOCK_GRAVEL, 0); cPrefab * RoadPiece = new cPrefab(BA, 1); - RoadPiece->AddConnector(0, 0, 1, BLOCK_FACE_XM, -2); - RoadPiece->AddConnector(len - 1, 0, 1, BLOCK_FACE_XP, -2); + RoadPiece->AddConnector(0, 0, 1, cPiece::cConnector::dirXM, -2); + RoadPiece->AddConnector(len - 1, 0, 1, cPiece::cConnector::dirXP, -2); RoadPiece->SetDefaultWeight(100); // Add the road connectors: for (int x = 1; x < len; x += 12) { - RoadPiece->AddConnector(x, 0, 0, BLOCK_FACE_ZM, 2); - RoadPiece->AddConnector(x, 0, 2, BLOCK_FACE_ZP, 2); + RoadPiece->AddConnector(x, 0, 0, cPiece::cConnector::dirZM, 2); + RoadPiece->AddConnector(x, 0, 2, cPiece::cConnector::dirZP, 2); } // Add the buildings connectors: for (int x = 7; x < len; x += 12) { - RoadPiece->AddConnector(x, 0, 0, BLOCK_FACE_ZM, 1); - RoadPiece->AddConnector(x, 0, 2, BLOCK_FACE_ZP, 1); + RoadPiece->AddConnector(x, 0, 0, cPiece::cConnector::dirZM, 1); + RoadPiece->AddConnector(x, 0, 2, cPiece::cConnector::dirZP, 1); } m_AllPieces.push_back(RoadPiece); m_PiecesByConnector[-2].push_back(RoadPiece); |