From 3fc447af899bcb59fa78f13fa40e6d4d9fc0a056 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 10 May 2004 16:17:46 +0000 Subject: [PATCH] Changed &D to use define to keep things compiling under VS6.0 --- src/osgSim/Sector.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osgSim/Sector.cpp b/src/osgSim/Sector.cpp index a819c47ce..7a8f0a07d 100644 --- a/src/osgSim/Sector.cpp +++ b/src/osgSim/Sector.cpp @@ -232,7 +232,9 @@ void DirectionalSector::computeMatrix() { float cR = cos(_rollAngle) ; float sR = sin(_rollAngle) ; - osg::Vec3 &D(_direction) ; // Just for clarity + + // Just for clarity + #define D _direction _local_to_LP.set( cR*D[1]+sR*D[0]*D[2], -cR*D[0]+sR*D[1]*D[2], -sR*(D[0]*D[0]+D[1]*D[1]), 0.0,