Skip to content

Commit

Permalink
bug for required addition connections = 0 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Jan 4, 2025
1 parent c297ecc commit 8de1ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/EngineGpuKernels/ConstructorProcessor.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ __inline__ __device__ Cell* ConstructorProcessor::continueConstruction(
Math::rotateQuarterClockwise(posDelta);

//get surrounding cells
if (numOtherCells > 0) {
if (numOtherCells > 0 && constructionData.numRequiredAdditionalConnections != 0) {

//sort surrounding cells by distance from newCell
bubbleSort(otherCells, numOtherCells, [&](auto const& cell1, auto const& cell2) {
Expand Down

0 comments on commit 8de1ee7

Please sign in to comment.