From baae57d9d527be977bb846757fab1a05ec73d4f0 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sat, 11 Feb 2012 15:16:34 -0500 Subject: [PATCH] [editorKeysounds] No KSes in this mode, thanks. --- src/Player.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Player.cpp b/src/Player.cpp index cefab6cce8..c913e1b46d 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -2990,13 +2990,16 @@ void Player::CrossedRows( int iLastRowCrossed, const RageTimer &now ) } } - // handle autokeysounds here. - for (int t = 0; t < m_NoteData.GetNumTracks(); ++t) + // handle autokeysounds here (if not in the editor). + if (!GAMESTATE->m_bInStepEditor) { - const TapNote &tap = m_NoteData.GetTapNote(t, iRow); - if (tap.type == TapNote::autoKeysound) + for (int t = 0; t < m_NoteData.GetNumTracks(); ++t) { - PlayKeysound(tap, TNS_None); + const TapNote &tap = m_NoteData.GetTapNote(t, iRow); + if (tap.type == TapNote::autoKeysound) + { + PlayKeysound(tap, TNS_None); + } } } }