|
From: Tapio V. <aa...@us...> - 2009-12-10 08:00:00
|
Module: performous
Branch: dance
Commit: 525c6d55f7c0be1940488c362394fa2df962ff51
Author: Tapio Vierros <tap...@gm...>
Date: Thu Dec 10 09:58:59 2009 +0200
Fixed combo popup always appearing in the center of the screen.
---
game/dancegraph.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/dancegraph.cc b/game/dancegraph.cc
index 2f879c5..edd505f 100644
--- a/game/dancegraph.cc
+++ b/game/dancegraph.cc
@@ -307,7 +307,7 @@ void DanceGraph::draw(double time) {
double s = 0.15 * (1.0 + streakAnim);
glColor4f(1.0f, 0.0f, 0.0f, 1.0 - streakAnim);
m_popupText->render(boost::lexical_cast<std::string>(unsigned(m_bigStreak)) + "\nStreak!");
- m_popupText->dimensions().center(0.0).middle(0.0).stretch(s,s);
+ m_popupText->dimensions().center(0.0).middle(offsetX).stretch(s,s);
m_popupText->draw();
if (streakAnim > 0.999) m_streakPopup.setTarget(0.0, true);
}
|