summaryrefslogtreecommitdiff
path: root/src/tgp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tgp.cpp')
-rw-r--r--src/tgp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tgp.cpp b/src/tgp.cpp
index 39fda6e6b..e23b2643d 100644
--- a/src/tgp.cpp
+++ b/src/tgp.cpp
@@ -658,7 +658,7 @@ static void HeightMapCurves(uint level)
for (uint t = 0; t < lengthof(curve_maps); t++) {
if (!HasBit(corner_bits, t)) continue;
-#ifndef NDEBUG
+#ifdef WITH_ASSERT
bool found = false;
#endif
const control_point_t *cm = curve_maps[t].list;
@@ -668,7 +668,7 @@ static void HeightMapCurves(uint level)
if (*h >= p1.x && *h < p2.x) {
ht[t] = p1.y + (*h - p1.x) * (p2.y - p1.y) / (p2.x - p1.x);
-#ifndef NDEBUG
+#ifdef WITH_ASSERT
found = true;
#endif
break;