diff --git a/stepmania/src/Sample3dObject.cpp b/stepmania/src/Sample3dObject.cpp index 2e8274808f..55a2479661 100644 --- a/stepmania/src/Sample3dObject.cpp +++ b/stepmania/src/Sample3dObject.cpp @@ -18,12 +18,10 @@ Sample3dObject::Sample3dObject() { rot = 0; - Sample3dObject::Update(); - DrawPrimitives(); } -void Sample3dObject::Update() +void Sample3dObject::Update( float fDeltaTime ) { rot += fDeltaTime * 360.f; rot = float(fmod(rot, 360.f)); diff --git a/stepmania/src/Sample3dObject.h b/stepmania/src/Sample3dObject.h index f298c4aafc..fe92ca79d7 100644 --- a/stepmania/src/Sample3dObject.h +++ b/stepmania/src/Sample3dObject.h @@ -6,13 +6,10 @@ class Sample3dObject: public ActorFrame { float rot; - float fDeltaTime; - float tX; - float tY; - float tZ; + public: Sample3dObject(); - void Update(); + void Update( float fDeltaTime ); void DrawPrimitives(); };