]> rtime.felk.cvut.cz Git - hubacji1/psp.git/blobdiff - src/psp.cc
Move precision workaround to parallel slot
[hubacji1/psp.git] / src / psp.cc
index 5992e3ec54a55599abd5232ac7d803bf5c82eafc..d9635df388eacfc13d49586500c8e2e892b21c18 100644 (file)
@@ -63,8 +63,8 @@ void PSPlanner::guess_gc()
         double dts = + M_PI / 2; // direction to slot
         if (this->ps().right())
                 dts = - M_PI / 2;
-        dts *= 0.99; // precision workaround
         if (this->ps().parallel()) {
+                dts *= 0.99; // precision workaround
                 x += (this->gc().w() / 2 + 0.01) * cos(h + dts);
                 x += (this->gc().dr() + 0.01) * cos(h);
                 y += (this->gc().w() / 2 + 0.01) * sin(h + dts);