|
From: rainbyte <rai...@us...> - 2012-07-17 10:44:58
|
Author: Tapio Vierros <tap...@gm...>
Date: Tue Jan 17 21:27:35 2012 +0200
Draw pitch waves only in their correct notegraph.
---
game/notegraph.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/game/notegraph.cc b/game/notegraph.cc
index c8ce4c6..e70fe5c 100644
--- a/game/notegraph.cc
+++ b/game/notegraph.cc
@@ -197,6 +197,8 @@ void NoteGraph::drawWaves(Database const& database) {
UseTexture tblock(m_wave);
//glBlendFunc(GL_SRC_ALPHA, GL_ONE);
for (std::list<Player>::const_iterator p = database.cur.begin(); p != database.cur.end(); ++p) {
+ if (p->m_vocal.name != m_vocal.name)
+ continue;
float const texOffset = 2.0 * m_time; // Offset for animating the wave texture
Player::pitch_t const& pitch = p->m_pitch;
size_t const beginIdx = std::max(0.0, m_time - 0.5 / pixUnit) / Engine::TIMESTEP; // At which pitch idx to start displaying the wave
|