cleanup
This commit is contained in:
+8
-13
@@ -16,7 +16,6 @@
|
|||||||
#include "ThemeMetric.h"
|
#include "ThemeMetric.h"
|
||||||
#include "ScreenDimensions.h"
|
#include "ScreenDimensions.h"
|
||||||
|
|
||||||
|
|
||||||
const int MAX_WHEEL_SOUND_SPEED = 15;
|
const int MAX_WHEEL_SOUND_SPEED = 15;
|
||||||
AutoScreenMessage( SM_SongChanged ) // TODO: Replace this with a Message and MESSAGEMAN
|
AutoScreenMessage( SM_SongChanged ) // TODO: Replace this with a Message and MESSAGEMAN
|
||||||
|
|
||||||
@@ -161,8 +160,8 @@ void WheelBase::Update( float fDeltaTime )
|
|||||||
pDisplay->m_colorLocked = RageColor(0,0,0,0);
|
pDisplay->m_colorLocked = RageColor(0,0,0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Moved to CommonUpdateProcedure, seems to work fine
|
// Moved to CommonUpdateProcedure, seems to work fine. Revert if it happens
|
||||||
//Revert if it happens to break something
|
// to break something.
|
||||||
UpdateScrollbar();
|
UpdateScrollbar();
|
||||||
|
|
||||||
if( m_Moving )
|
if( m_Moving )
|
||||||
@@ -178,9 +177,8 @@ void WheelBase::Update( float fDeltaTime )
|
|||||||
|
|
||||||
if( m_WheelState == STATE_LOCKED )
|
if( m_WheelState == STATE_LOCKED )
|
||||||
{
|
{
|
||||||
/* Do this in at most .1 sec chunks, so we don't get weird if we
|
/* Do this in at most .1 sec chunks, so we don't get weird if we stop
|
||||||
* stop for some reason (and so it behaves the same when being
|
* for some reason (and so it behaves the same when being single stepped). */
|
||||||
* single stepped). */
|
|
||||||
float fTime = fDeltaTime;
|
float fTime = fDeltaTime;
|
||||||
while( fTime > 0 )
|
while( fTime > 0 )
|
||||||
{
|
{
|
||||||
@@ -207,13 +205,12 @@ void WheelBase::Update( float fDeltaTime )
|
|||||||
|
|
||||||
if( IsMoving() )
|
if( IsMoving() )
|
||||||
{
|
{
|
||||||
/* We're automatically moving. Move linearly, and don't clamp
|
// We're automatically moving. Move linearly, and don't clamp to the selection.
|
||||||
* to the selection. */
|
|
||||||
float fSpinSpeed = m_SpinSpeed*m_Moving;
|
float fSpinSpeed = m_SpinSpeed*m_Moving;
|
||||||
m_fPositionOffsetFromSelection -= fSpinSpeed*fDeltaTime;
|
m_fPositionOffsetFromSelection -= fSpinSpeed*fDeltaTime;
|
||||||
|
|
||||||
/* Make sure that we don't go further than 1 away, in case the
|
/* Make sure that we don't go further than 1 away, in case the speed is
|
||||||
* speed is very high or we miss a lot of frames. */
|
* very high or we miss a lot of frames. */
|
||||||
m_fPositionOffsetFromSelection = clamp(m_fPositionOffsetFromSelection, -1.0f, 1.0f);
|
m_fPositionOffsetFromSelection = clamp(m_fPositionOffsetFromSelection, -1.0f, 1.0f);
|
||||||
|
|
||||||
// If it passed the selection, move again.
|
// If it passed the selection, move again.
|
||||||
@@ -528,8 +525,7 @@ public:
|
|||||||
static int SetOpenSection( T* p, lua_State *L ){ p->SetOpenSection( SArg(1) ); return 0; }
|
static int SetOpenSection( T* p, lua_State *L ){ p->SetOpenSection( SArg(1) ); return 0; }
|
||||||
// evil shit
|
// evil shit
|
||||||
//static int Move( T* p, lua_State *L ){ p->Move( IArg(1) ); return 0; }
|
//static int Move( T* p, lua_State *L ){ p->Move( IArg(1) ); return 0; }
|
||||||
//static int ChangeMusic( T* p, lua_State *L ){ p->ChangeMusic( IArg(1) ); return 0; }
|
//static int ChangeMusic( T* p, lua_State *L ){ p->ChangeMusicUnlessLocked( IArg(1) ); return 0; }
|
||||||
//static int ChangeMusicUnlessLocked( T* p, lua_State *L ){ p->ChangeMusicUnlessLocked( IArg(1) ); return 0; }
|
|
||||||
|
|
||||||
LunaWheelBase()
|
LunaWheelBase()
|
||||||
{
|
{
|
||||||
@@ -540,7 +536,6 @@ public:
|
|||||||
// evil shit
|
// evil shit
|
||||||
//ADD_METHOD( Move );
|
//ADD_METHOD( Move );
|
||||||
//ADD_METHOD( ChangeMusic );
|
//ADD_METHOD( ChangeMusic );
|
||||||
//ADD_METHOD( ChangeMusicUnlessLocked );
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user