Skip to content

Commit

Permalink
slighty improve loadfromsmnotedatastring
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 13, 2017
1 parent 2b61bc3 commit bbcf62e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/NoteData.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class NoteData

/* Return the note at the given track and row. Row may be out of
* range; pretend the song goes on with TAP_EMPTYs indefinitely. */
inline const TapNote &GetTapNote( unsigned track, int row ) const
inline const TapNote &GetTapNote( const unsigned& track, const int& row ) const
{
const TrackMap &mapTrack = m_TapNotes[track];
TrackMap::const_iterator iter = mapTrack.find( row );
Expand Down
6 changes: 4 additions & 2 deletions src/NoteDataUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static void LoadFromSMNoteDataStringWithPlayer( NoteData& out, const RString &sS

switch( ch )
{
case '0': tn = TAP_EMPTY; break;
case '0': break; // massive waste of processor time to initialize a tapnote with type empty only to do nothing with it -mina
case '1': tn = TAP_ORIGINAL_TAP; break;
case '2':
case '4':
Expand Down Expand Up @@ -168,7 +168,9 @@ static void LoadFromSMNoteDataStringWithPlayer( NoteData& out, const RString &sS
* due to invalid data. We should probably check for this when
* we load SM data for the first time ... */
// FAIL_M("Invalid data in SM");
tn = TAP_EMPTY;

// massive waste of processor time -mina
//tn = TAP_EMPTY;
break;
}

Expand Down

0 comments on commit bbcf62e

Please sign in to comment.