summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMartin Miller2017-03-31 16:22:43 -0500
committerMartin Miller2017-03-31 16:22:43 -0500
commit57bc3c5b99406e2dfa04ce38de12ac2f4e749248 (patch)
treeec5aa64d56ad444f2251c4a1ab50ea65651214d1 /src/main.cpp
parent3644a23c3fb97fa6733ec388002d62ccb8c0d39f (diff)
downloadrefslam-57bc3c5b99406e2dfa04ce38de12ac2f4e749248.zip
refslam-57bc3c5b99406e2dfa04ce38de12ac2f4e749248.tar.gz
Add compile time flags.
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];
}