and more of the same

This commit is contained in:
Glenn Maynard
2002-11-16 08:55:46 +00:00
parent 397bd8b734
commit 551f5adb16
12 changed files with 19 additions and 13 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ void InputMapper::ReadMappingsFromDisk()
CStringArray sDeviceInputStrings; CStringArray sDeviceInputStrings;
split( value, ",", sDeviceInputStrings, false ); split( value, ",", sDeviceInputStrings, false );
for( unsigned i=0; i<sDeviceInputStrings.size() && i<NUM_GAME_TO_DEVICE_SLOTS; i++ ) for( unsigned i=0; i<sDeviceInputStrings.size() && i<unsigned(NUM_GAME_TO_DEVICE_SLOTS); i++ )
{ {
DeviceInput DeviceI; DeviceInput DeviceI;
DeviceI.fromString( sDeviceInputStrings[i] ); DeviceI.fromString( sDeviceInputStrings[i] );
+3 -2
View File
@@ -687,7 +687,8 @@ void MusicWheel::RebuildWheelItemDisplays()
if( m_iSelection > int(GetCurWheelItemDatas().size()-1) ) if( m_iSelection > int(GetCurWheelItemDatas().size()-1) )
m_iSelection = 0; m_iSelection = 0;
for( int i=0; i<NUM_WHEEL_ITEMS_TO_DRAW/2; i++ ) int i;
for( i=0; i<NUM_WHEEL_ITEMS_TO_DRAW/2; i++ )
{ {
do do
{ {
@@ -774,7 +775,7 @@ void MusicWheel::Update( float fDeltaTime )
ActorFrame::Update( fDeltaTime ); ActorFrame::Update( fDeltaTime );
unsigned i; unsigned i;
for( i=0; i<NUM_WHEEL_ITEMS_TO_DRAW; i++ ) for( i=0; i<int(NUM_WHEEL_ITEMS_TO_DRAW); i++ )
{ {
WheelItemDisplay& display = m_WheelItemDisplays[i]; WheelItemDisplay& display = m_WheelItemDisplays[i];
+2 -1
View File
@@ -405,7 +405,8 @@ void NoteData::CropToLeftSide()
int iLastRightSideColumn = 7; int iLastRightSideColumn = 7;
// clear out the right half // clear out the right half
for( int c=iFirstRightSideColumn; c<=iLastRightSideColumn; c++ ) int c;
for( c=iFirstRightSideColumn; c<=iLastRightSideColumn; c++ )
{ {
for( int i=0; i<MAX_TAP_NOTE_ROWS; i++ ) // foreach TapNote for( int i=0; i<MAX_TAP_NOTE_ROWS; i++ ) // foreach TapNote
SetTapNote(c, i, TAP_EMPTY); SetTapNote(c, i, TAP_EMPTY);
+4
View File
@@ -192,8 +192,10 @@ struct RageVertex
/* nonstandard extension used : nameless struct/union /* nonstandard extension used : nameless struct/union
* It is, in fact, nonstandard. G++ 3.x can handle it. 2.95.x can not. XXX */ * It is, in fact, nonstandard. G++ 3.x can handle it. 2.95.x can not. XXX */
#if defined(_MSC_VER)
#pragma warning (push) #pragma warning (push)
#pragma warning (disable : 4201) #pragma warning (disable : 4201)
#endif
struct RageMatrix struct RageMatrix
{ {
@@ -259,6 +261,8 @@ public:
}; };
}; };
#if defined(_MSC_VER)
#pragma warning (pop) #pragma warning (pop)
#endif
#endif #endif
+1 -1
View File
@@ -19,7 +19,7 @@ class RandomSample
{ {
public: public:
RandomSample(); RandomSample();
~RandomSample(); virtual ~RandomSample();
virtual bool Load( CString sFilePath ) virtual bool Load( CString sFilePath )
{ {