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 ) void FontPage::SetExtraPixels( int iDrawExtraPixelsLeft, int iDrawExtraPixelsRight )
{ {
/* Hack: do one more than we were asked to; I think a lot of fonts are one /* 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++; iDrawExtraPixelsRight++;
iDrawExtraPixelsLeft++; iDrawExtraPixelsLeft++;
-2
View File
@@ -23,9 +23,7 @@ public:
void UpdateNumber(); void UpdateNumber();
//
// Commands // Commands
//
virtual void PushSelf( lua_State *L ); virtual void PushSelf( lua_State *L );
private: private:
+1 -2
View File
@@ -130,7 +130,6 @@ void StepsUtil::SortStepsPointerArrayByNumPlays( vector<Steps*> &vStepsPointers,
} }
} }
ASSERT( pProfile ); ASSERT( pProfile );
for(unsigned i = 0; i < vStepsPointers.size(); ++i) for(unsigned i = 0; i < vStepsPointers.size(); ++i)
{ {
@@ -165,7 +164,7 @@ bool StepsUtil::CompareNotesPointersByDifficulty(const Steps *pSteps1, const Ste
void StepsUtil::SortNotesArrayByDifficulty( vector<Steps*> &arraySteps ) 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). */ * a predictable order for songs with no radar values (edits). */
stable_sort( arraySteps.begin(), arraySteps.end(), CompareStepsPointersByDescription ); stable_sort( arraySteps.begin(), arraySteps.end(), CompareStepsPointersByDescription );
stable_sort( arraySteps.begin(), arraySteps.end(), CompareNotesPointersByRadarValues ); stable_sort( arraySteps.begin(), arraySteps.end(), CompareNotesPointersByRadarValues );