fixed initialization of track classes and basic 3d types

This commit is contained in:
tmj-fstate
2017-01-27 00:50:54 +01:00
parent 647e1f9000
commit 71cd60b543
6 changed files with 97 additions and 144 deletions

View File

@@ -26,15 +26,11 @@ std::string Where(vector3 p)
return std::to_string(p.x) + " " + std::to_string(p.y) + " " + std::to_string(p.z);
};
TSegment::TSegment(TTrack *owner)
TSegment::TSegment(TTrack *owner) :
pOwner( owner )
{
Point1 = CPointOut = CPointIn = Point2 = vector3(0.0f, 0.0f, 0.0f);
fLength = 0;
fRoll1 = 0;
fRoll2 = 0;
fTsBuffer = NULL;
fStep = 0;
pOwner = owner;
fAngle[ 0 ] = 0.0;
fAngle[ 1 ] = 0.0;
};
TSegment::~TSegment()