From bd4b8875fcc9cedb5c0d0ab7621bf9b093b6a1b5 Mon Sep 17 00:00:00 2001 From: Chris Gilbert Date: Tue, 19 Nov 2002 23:02:02 +0000 Subject: [PATCH] no message --- stepmania/src/Sample3dObject.cpp | 4 +--- stepmania/src/Sample3dObject.h | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) 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(); };