summaryrefslogtreecommitdiff
path: root/common/object.cpp
diff options
context:
space:
mode:
authorleo2000-08-24 21:24:42 +0000
committerleo2000-08-24 21:24:42 +0000
commit31a1d493ed4ca5d263244a8a3231111a58bdc5c4 (patch)
tree9963c933eb4fe42f257db26c7938009c4a88b0f4 /common/object.cpp
parente54d0ecfb00132cb4eeafb7d909f89c93a7b3ca6 (diff)
Updated the Windows version with the new Minifig Wizard.
Fixed some OpenGL problems on the Windows version. git-svn-id: http://svn.leocad.org/trunk@106 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/object.cpp')
-rwxr-xr-xcommon/object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/object.cpp b/common/object.cpp
index 2d75341..a26d2d5 100755
--- a/common/object.cpp
+++ b/common/object.cpp
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <float.h>
+#include <math.h>
#include "object.h"
#include "matrix.h"
#include "vector.h"
@@ -26,7 +27,7 @@ static void GetPolyCoeffs (float x1, float y1, float z1, float x2, float y2, flo
double LC_CLICKLINE::PointDistance (float *point)
{
- Vector op (point[0] - a1, point[1] - b1, point[2] - c1);
+ Vector op ((float)(point[0] - a1), (float)(point[1] - b1), (float)(point[2] - c1));
Vector d ((float)a2, (float)b2, (float)c2);
float len = d.Length ();
d.Normalize ();