summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 246f73d..1de5b29 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -31,8 +31,12 @@ double
aboveWater(const Quaterniond &q)
{
Vector3d tip;
+#ifdef DOHEIGHT
tip << CANOECENTER*3.43, 0, CANOEHEIGHT;
tip = q._transformVector(tip);
+#else /* ----- not DOHEIGHT ----- */
+ tip[2] = CANOEHEIGHT;
+#endif /* ----- not DOHEIGHT ----- */
return tip[2];
}