summaryrefslogtreecommitdiffstats
path: root/src/Generating/PiecePool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Generating/PiecePool.cpp')
-rw-r--r--src/Generating/PiecePool.cpp25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/Generating/PiecePool.cpp b/src/Generating/PiecePool.cpp
index 201c70afd..4b4303516 100644
--- a/src/Generating/PiecePool.cpp
+++ b/src/Generating/PiecePool.cpp
@@ -200,10 +200,7 @@ Vector3i cPiece::cConnector::AddDirection(const Vector3i & a_Pos, eDirection a_D
case dirYP_XP_ZM: return Vector3i(a_Pos.x, a_Pos.y + 1, a_Pos.z);
case dirYP_XP_ZP: return Vector3i(a_Pos.x, a_Pos.y + 1, a_Pos.z);
}
- #if !defined(__clang__)
- ASSERT(!"Unknown connector direction");
- return a_Pos;
- #endif
+ UNREACHABLE("Unsupported connector direction");
}
@@ -229,10 +226,7 @@ const char * cPiece::cConnector::DirectionToString(eDirection a_Direction)
case dirYP_XP_ZM: return "y+x+z-";
case dirYP_XP_ZP: return "y+x+z+";
}
- #if !defined(__clang__)
- ASSERT(!"Unknown connector direction");
- return "<unknown>";
- #endif
+ UNREACHABLE("Unsupported connector direction");
}
@@ -288,10 +282,7 @@ cPiece::cConnector::eDirection cPiece::cConnector::RotateDirection(eDirection a_
case dirYP_XP_ZM: return dirYP_XM_ZP;
case dirYP_XP_ZP: return dirYP_XM_ZM;
}
- #if !defined(__clang__)
- ASSERT(!"Unknown connector direction");
- return a_Direction;
- #endif
+ UNREACHABLE("Unsupported connector direction");
}
@@ -318,10 +309,7 @@ cPiece::cConnector::eDirection cPiece::cConnector::RotateDirectionCCW(eDirection
case dirYP_XP_ZM: return dirYP_XM_ZM;
case dirYP_XP_ZP: return dirYP_XP_ZM;
}
- #if !defined(__clang__)
- ASSERT(!"Unknown connector direction");
- return a_Direction;
- #endif
+ UNREACHABLE("Unsupported connector direction");
}
@@ -348,10 +336,7 @@ cPiece::cConnector::eDirection cPiece::cConnector::RotateDirectionCW(eDirection
case dirYP_XP_ZM: return dirYP_XP_ZP;
case dirYP_XP_ZP: return dirYP_XM_ZP;
}
- #if !defined(__clang__)
- ASSERT(!"Unknown connector direction");
- return a_Direction;
- #endif
+ UNREACHABLE("Unsupported connector direction");
}