small comment/cleanup

This commit is contained in:
AJ Kelly
2010-06-23 11:19:49 -05:00
parent 16c0912c43
commit 2be759893a
4 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ void FontPage::SetTextureCoords( const vector<int> &widths, int iAdvanceExtraPix
void FontPage::SetExtraPixels( int iDrawExtraPixelsLeft, int iDrawExtraPixelsRight )
{
/* Hack: do one more than we were asked to; I think a lot of fonts are one
* too low. (who? -aj; todo: source quote) */
* too low. - glenn */
iDrawExtraPixelsRight++;
iDrawExtraPixelsLeft++;
-2
View File
@@ -23,9 +23,7 @@ public:
void UpdateNumber();
//
// Commands
//
virtual void PushSelf( lua_State *L );
private:
+3 -4
View File
@@ -130,7 +130,6 @@ void StepsUtil::SortStepsPointerArrayByNumPlays( vector<Steps*> &vStepsPointers,
}
}
ASSERT( pProfile );
for(unsigned i = 0; i < vStepsPointers.size(); ++i)
{
@@ -146,7 +145,7 @@ bool StepsUtil::CompareNotesPointersByRadarValues(const Steps* pSteps1, const St
{
float fScore1 = 0;
float fScore2 = 0;
fScore1 += pSteps1->GetRadarValues( PLAYER_1 )[RadarCategory_TapsAndHolds];
fScore2 += pSteps2->GetRadarValues( PLAYER_1 )[RadarCategory_TapsAndHolds];
@@ -165,7 +164,7 @@ bool StepsUtil::CompareNotesPointersByDifficulty(const Steps *pSteps1, const Ste
void StepsUtil::SortNotesArrayByDifficulty( vector<Steps*> &arraySteps )
{
/* Sort in reverse order of priority. Sort by description first, to get
/* Sort in reverse order of priority. Sort by description first, to get
* a predictable order for songs with no radar values (edits). */
stable_sort( arraySteps.begin(), arraySteps.end(), CompareStepsPointersByDescription );
stable_sort( arraySteps.begin(), arraySteps.end(), CompareNotesPointersByRadarValues );
@@ -203,7 +202,7 @@ void StepsUtil::RemoveLockedSteps( const Song *pSong, vector<Steps*> &vpSteps )
{
if( UNLOCKMAN->StepsIsLocked(pSong, vpSteps[i]) )
vpSteps.erase( vpSteps.begin()+i );
}
}
}
+2 -2
View File
@@ -66,14 +66,14 @@ namespace StepsUtil
bool CompareNotesPointersByRadarValues(const Steps* pSteps1, const Steps* pSteps2);
bool CompareNotesPointersByMeter(const Steps *pSteps1, const Steps* pSteps2);
bool CompareNotesPointersByDifficulty(const Steps *pSteps1, const Steps *pSteps2);
void SortNotesArrayByDifficulty( vector<Steps*> &vpStepsInOut );
void SortNotesArrayByDifficulty( vector<Steps*> &vpStepsInOut );
bool CompareStepsPointersByTypeAndDifficulty(const Steps *pStep1, const Steps *pStep2);
void SortStepsByTypeAndDifficulty( vector<Steps*> &vpStepsInOut );
void SortStepsPointerArrayByNumPlays( vector<Steps*> &vpStepsInOut, ProfileSlot slot, bool bDescending );
void SortStepsPointerArrayByNumPlays( vector<Steps*> &vpStepsInOut, const Profile* pProfile, bool bDescending );
bool CompareStepsPointersByDescription(const Steps *pStep1, const Steps *pStep2);
void SortStepsByDescription( vector<Steps*> &vpStepsInOut );
void RemoveLockedSteps( const Song *pSong, vector<Steps*> &vpStepsInOut );
void RemoveLockedSteps( const Song *pSong, vector<Steps*> &vpStepsInOut );
};
class StepsID